根据组隐藏按钮
我有一个定义的组,我想根据组显示一个按钮。
<button name="assign_ticket" states= "pending_assignment,draft" groups="group_centricare_care_agents" string="Assign to me"/>
我希望此按钮显示到组“roup_centricare_care_agents”,但在添加组标记时会导致异常。
PS:此按钮在树视图中。
我该怎么做?
提前致谢
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"/>
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.: This button in tree view.
How can i do this??
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为 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?
我也遇到了同样的问题,我在窗口上使用 openerp 7 ,当我编辑以下代码时
I have also faced a same problem, i am using openerp 7 on window and when i edit the following code