콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3919 화면

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>

아바타
취소
관련 게시물 답글 화면 활동
1
1월 17
2967
1
1월 17
3204
0
8월 16
3052
2
9월 22
4117
0
3월 19
2796