4 <record id="product_normal_form_view" model="ir.ui.view">
5 <field name="name">product.normal.form.inherit.stock</field>
6 <field name="model">product.product</field>
7 <field name="type">form</field>
8 <field name="inherit_id" ref="account.product_normal_form_view"/>
9 <field name="arch" type="xml">
10 <xpath expr="//field[@name='property_account_expense']" position="after">
11 <label string="" colspan="2"/>
12 <field name="property_account_creditor_price_difference" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
18 <record id="product_template_form_view" model="ir.ui.view">
19 <field name="name">product.template.product.form.inherit</field>
20 <field name="model">product.template</field>
21 <field name="type">form</field>
22 <field name="inherit_id" ref="account.product_template_form_view"/>
23 <field name="arch" type="xml">
24 <xpath expr="/form/notebook/page/field[@name='property_account_expense']" position="after">
25 <field name="property_account_creditor_price_difference" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
31 <record id="view_category_property_form" model="ir.ui.view">
32 <field name="name">product.category.property.form.inherit.stock</field>
33 <field name="model">product.category</field>
34 <field name="type">form</field>
35 <field name="inherit_id" ref="product.product_category_form_view"/>
36 <field name="arch" type="xml">
37 <form position="inside">
39 <separator string="Accounting Property" colspan="2"/>
40 <field name="property_account_creditor_price_difference_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>