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
3985 Widoki

How can I give to a field that exists in product a new user group?

For example in a new view or in an existing view without modifie the normal standard product module.

thx

Awatar
Odrzuć
Najlepsza odpowiedź

hello wizardz,

You have inherit the existing view using xpath and add possition as attributes and give the group to that field.

for example here group is give on button likeweise you can give it to your field.

<record model="ir.ui.view" id="invoice_form_inherit">           

        <field name="name">invoice_form inherit</field>           

        <field name="model">account.invoice</field>           

        <field name="inherit_id" ref="account.invoice_form"/>           

        <field name="arch" type="xml">                               

        <xpath expr="//form/header/button[@name='invoice_print']" position="attributes">                   

                        <attribute name="groups">base.group_system</attribute>       

        </xpath>           

        </field>       

</record>

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sty 17
3045
1
sty 17
3278
0
sie 16
3115
2
wrz 22
4214
0
mar 19
2855