按组隐藏按钮 [英] hide button according to group
问题描述
我有一个已定义的组,我想根据组显示一个按钮.
I have a defined groups and i want to display a button according a group.
<button name="assign_ticket" states= "pending_assignment,draft" groups="group_centricare_care_agents" string="Assign to me"/>
我希望将此按钮显示在"roup_centricare_care_agents"组中,但是在添加组标记时会导致异常.
i want this button to be displayed to the group "roup_centricare_care_agents" but when adding groups tag it cause an exception.
P.S .:树状视图中的此按钮.
P.S.: This button in tree view.
我该怎么做?
预先感谢
推荐答案
我认为groups属性必须在模块名称中包含模块名称.例如,经常使用groups="base.group_extended"
.模块名称应来自最初创建组的模块.我不知道,也可能是树视图或按钮不支持groups属性.
I think the groups attribute has to have the module name included in the group name. For example, groups="base.group_extended"
is used a lot. The module name should be from the module that originally created the group. It might also be that the groups attribute is not supported in tree views or on buttons, I don't know.
您可以发布有关错误内容的详细信息吗?
Can you post details of what your error says?
这篇关于按组隐藏按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!