Inherit template view instead of product

This commit is contained in:
Cédric Krier
2008-12-11 18:21:13 +01:00
parent a587f8a5e9
commit 97207c8d5a
+8 -8
View File
@@ -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=&quot;description&quot;]"
position="before">
<xpath expr="/form/notebook/page[@string=&quot;General&quot;]/field[@name=&quot;cost_price_method&quot;]"
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>