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="product.product_normal_form_view"/>
9 <field name="arch" type="xml">
10 <xpath expr="/form/notebook/page/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)]}" />
13 <!-- <field name="property_account_sending_goods" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('sale_ok','=',0)]}" />-->
14 <!-- <field name="property_account_received_goods" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />-->
19 <record id="product_template_form_view" model="ir.ui.view">
20 <field name="name">product.template.product.form.inherit</field>
21 <field name="model">product.template</field>
22 <field name="type">form</field>
23 <field name="inherit_id" ref="product.product_template_form_view"/>
24 <field name="arch" type="xml">
25 <xpath expr="/form/notebook/page/field[@name='property_account_expense']" position="after">
26 <field name="property_account_creditor_price_difference" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
28 <!-- <field name="property_account_sending_goods" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('sale_ok','=',0)]}" />-->
29 <!-- <field name="property_account_received_goods" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />-->
34 <record id="view_category_property_form" model="ir.ui.view">
35 <field name="name">product.category.property.form.inherit.stock</field>
36 <field name="model">product.category</field>
37 <field name="type">form</field>
38 <field name="inherit_id" ref="product.product_category_form_view"/>
39 <field name="arch" type="xml">
40 <form position="inside">
41 <group col="2" colspan="2">
42 <separator string=" Accounting Property" colspan="2"/>
43 <field name="property_account_creditor_price_difference_categ" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
44 <!-- <field name="property_account_sending_goods_categ" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('sale_ok','=',0)]}" />-->
45 <!-- <field name="property_account_received_goods_categ" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />-->