Inherit template view instead of product
This commit is contained in:
+8
-8
@@ -726,14 +726,14 @@ this repository contains the full copyright notices and license terms. -->
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="product_view_form">
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit" ref="product.product_view_form"/>
|
||||
<record model="ir.ui.view" id="template_view_form">
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit" ref="product.template_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath expr="/form/notebook/page/separator[@name="description"]"
|
||||
position="before">
|
||||
<xpath expr="/form/notebook/page[@string="General"]/field[@name="cost_price_method"]"
|
||||
position="after">
|
||||
<label name="purchasable"/>
|
||||
<field name="purchasable"/>
|
||||
</xpath>
|
||||
@@ -759,9 +759,9 @@ this repository contains the full copyright notices and license terms. -->
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="product_view_tree">
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit" ref="product.product_view_tree"/>
|
||||
<record model="ir.ui.view" id="template_view_tree">
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit" ref="product.template_view_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
|
||||
Reference in New Issue
Block a user