有趣。。。您应该通过在视图的groups\u id字段的视图记录定义中添加组要求来解决此问题,如:
<record id="view_res_partner_pricelist" model="ir.ui.view">
<field name="name">view.res.partner.pricelist.form</field>
<field name="model">res.partner</field>
<field name="type">form</field>
<field name="inherit_id" ref="product.view_partner_property_form" />
<field name="context">{'readonly_by_pass': True}</field>
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='accounting']" position="replace"/>
</field>
</record>