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

To remove the internal link arrow button

I tried this but it is not working after inheriting the sale order view.

<xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="attributes">
<attribute name="options">{'no_create': True, 'no_create_edit': True,'no_open':True}</attribute>
</xpath>
<xpath expr="//field[@name='order_line']/tree/field[@name='product_template_id']" position="attributes">
<attribute name="options">{'no_create': True, 'no_create_edit': True,'no_open':True}</attribute>
</xpath>

아바타
취소
베스트 답변
<record id="sale_order_form_inherited" model="ir.ui.view">
<field name="name">sale.order.inherited.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="attributes">
<attribute name="options">{'no_create': True,'no_create_edit': True,'no_open': True}</attribute>
</xpath>
</field>
</record>
아바타
취소