Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
139 มุมมอง

Is there any way to inherit this? 


I tried inheriting it by this code:

<data>
    <xpath expr="//page[@name='sales']/group[@name='sale']/group[@name='product_template_images']" position="attributes">
        <attribute name="groups">groups.proc_dept,groups.sales_dept</attribute>
    </xpath>
</data>


But it didn't work.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Please refer to the code below:

<record id="view_product_form_inherit_groups" model="ir.ui.view">
<field name="name">product.template.form.inherit.groups</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='sales']//group[@name='product_template_images']"
position="attributes">
<attribute name="groups">groups.proc_dept,groups.sales_dept</attribute><!--Module_name.Group_id-->
</xpath>
</field>
</record>

Hope it helps.

อวตาร
ละทิ้ง
ผู้เขียน

The "add media" button is still not showing.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 24
812
1
มิ.ย. 21
9294
1
พ.ค. 15
6558
4
ก.พ. 25
2330
1
ส.ค. 24
1973