跳至內容
選單
此問題已被標幟
1 回覆
165 瀏覽次數

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.

相關帖文 回覆 瀏覽次數 活動
0
7月 24
817
1
6月 21
9301
1
5月 15
6571
4
2月 25
2352
1
8月 24
1983