This question has been flagged
1 Reply
8196 Views

This is original view, and there is group_id added <field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/> so only users with accounting access rights can see this tab, but how can i make this tab visible for all users?

 <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)]}">
Avatar
Discard
Best Answer

Hello Grf,

Yes you can visible this menu with all user they have two kind :

1. You added you all user in this group

2. Otherwise inherit or override this view and remove below condition 

field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>

I hope it's help you

Thanks

Avatar
Discard
Author

found already solution

with

<record id="account.view_partner_property_form" model="ir.ui.view">

<field name="groups_id" eval="[(6, 0, [])]"/>

</record>

thanx anyway