我正在使用 openerp 中的 python、xml。我正在为经理和用户创建访问权限。我想在用户登录时隐藏“转换为机会”按钮。并在经理登录中显示该按钮。如何在登录用户上隐藏此按钮。
请参阅以下屏幕截图。
我分别为经理和用户创建了组。
<button string="Convert to Opportunity" type="action" states="draft,open,pending" help="Convert to Opportunity" class="oe_highlight" position="replace"/>
当我添加此代码时。“转换为商机”按钮将被隐藏。但它是隐藏的用户和管理员。
然后我尝试添加“组”属性并放置我的组名。但它会给出架构错误
<button string="Convert to Opportunity" type="action" states="draft,open,pending" help="Convert to Opportunity" class="oe_highlight" group="User" position="replace"/>
我错了什么?