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="/form/notebook/page/group/field[@name='property_account_expense']" position="after">
11 <field name="property_account_creditor_price_difference" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
17 <record id="product_template_form_view" model="ir.ui.view">
18 <field name="name">product.template.product.form.inherit</field>
19 <field name="model">product.template</field>
20 <field name="type">form</field>
21 <field name="inherit_id" ref="account.product_template_form_view"/>
22 <field name="arch" type="xml">
23 <xpath expr="/form/notebook/page/field[@name='property_account_expense']" position="after">
24 <field name="property_account_creditor_price_difference" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
30 <record id="view_category_property_form" model="ir.ui.view">
31 <field name="name">product.category.property.form.inherit.stock</field>
32 <field name="model">product.category</field>
33 <field name="type">form</field>
34 <field name="inherit_id" ref="product.product_category_form_view"/>
35 <field name="arch" type="xml">
36 <form position="inside">
37 <group col="2" colspan="2">
38 <separator string=" Accounting Property" colspan="2"/>
39 <field name="property_account_creditor_price_difference_categ" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />