Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3813 Представления

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>

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
янв. 17
2881
1
янв. 17
3075
0
авг. 16
2940
2
сент. 22
3895
0
мар. 19
2646