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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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>
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
1
janv. 17
|
2888 | ||
|
1
janv. 17
|
3092 | ||
|
0
août 16
|
2955 | ||
|
2
sept. 22
|
3930 | ||
|
0
mars 19
|
2661 |