How to Create Filter for a User group in Odoo

拥有回忆 提交于 2019-12-11 03:38:42

问题


I want to create filters for a certain group of users. Basically only they should be able to view that filter in the filter area.

I tried something like this,

<filter icon="terp-check" domain="[('state','=','Current')]" string="Current Bills"  groups="my_module.group_sales_manager" />

Its not working. According to this only group_sales_manager should be able to use this filter, Any idea?


回答1:


Try with this

<filter icon="terp-check" 
        domain="[('state','=','Current')]"
        string="Current Bills"
        groups="base.group_sale_manager" />

"Current Bills" filter will be used by Sale Manager User.



来源:https://stackoverflow.com/questions/31959261/how-to-create-filter-for-a-user-group-in-odoo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!