45 lines
2.2 KiB
XML
45 lines
2.2 KiB
XML
<?xml version="1.0"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="product_normal_form_view" model="ir.ui.view">
|
|
<field name="name">product.normal.form.inherit.stock</field>
|
|
<field name="model">product.product</field>
|
|
<field name="inherit_id" ref="account.product_normal_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='property_account_expense']" position="after">
|
|
<label string="" colspan="2"/>
|
|
<field name="property_account_creditor_price_difference" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
|
|
<newline/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="product_template_form_view" model="ir.ui.view">
|
|
<field name="name">product.template.product.form.inherit</field>
|
|
<field name="model">product.template</field>
|
|
<field name="inherit_id" ref="account.product_template_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="/form/notebook/page/field[@name='property_account_expense']" position="after">
|
|
<field name="property_account_creditor_price_difference" domain="[('type','<>','view'),('type','<>','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
|
|
<newline/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_category_property_form" model="ir.ui.view">
|
|
<field name="name">product.category.property.form.inherit.stock</field>
|
|
<field name="model">product.category</field>
|
|
<field name="inherit_id" ref="account.view_category_property_form"/>
|
|
<field name="arch" type="xml">
|
|
<data>
|
|
<xpath expr="//field[@name='property_account_income_categ']" position="before">
|
|
<field name="property_account_creditor_price_difference_categ" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
|
</xpath>
|
|
</data>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|
|
|