问题
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