How to Create Filter for a User group in Odoo

2019-07-13 11:08发布

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?

标签: odoo odoo-8
1条回答
再贱就再见
2楼-- · 2019-07-13 11:36

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.

查看更多
登录 后发表回答