这是原始视图,并且添加了group_id <field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
因此只有具有帐户访问权限的用户才能看到此标签,但是如何使所有用户都可以看到此标签?
<record id="view_partner_property_form" model="ir.ui.view">
<field name="name">res.partner.property.form.inherit</field>
<field name="model">res.partner</field>
<field name="priority">2</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
<field name="arch" type="xml">
<page name="sales_purchases" position="after">
<page string="Accounting" name="accounting" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}">
答案 0 :(得分:0)
解决方案是
<record id="account.view_partner_property_form" model="ir.ui.view">
<field name="groups_id" eval="[(6, 0, [])]"/>
</record>