如何在Odoo中为用户组创建过滤器 [英] How to Create Filter for a User group in Odoo
本文介绍了如何在Odoo中为用户组创建过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为特定的用户组创建过滤器.基本上,只有他们应该能够在过滤器区域中查看该过滤器.
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.
我尝试过类似的事情
<filter icon="terp-check" domain="[('state','=','Current')]" string="Current Bills" groups="my_module.group_sales_manager" />
它不起作用.据此,只有group_sales_manager应该可以使用此过滤器,知道吗?
Its not working. According to this only group_sales_manager should be able to use this filter, Any idea?
推荐答案
尝试一下
<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.
这篇关于如何在Odoo中为用户组创建过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文