Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3857 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 17
2906
1
thg 1 17
3143
0
thg 8 16
2981
2
thg 9 22
4005
0
thg 3 19
2716