Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
10409 Widoki

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)]}">
Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
0
lut 24
5
0
lut 24
6
3
lis 23
14399
1
lut 17
3764
5
sie 24
46749