Launchpad automatic translations update.
[odoo/odoo.git] / addons / account_anglo_saxon / product_view.xml
1 <?xml version="1.0"?>
2 <openerp>
3     <data>
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','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
12                     <newline/>
13                 </xpath>
14             </field>
15         </record>
16
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','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
25                     <newline/>
26                 </xpath>
27              </field>
28         </record>
29
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','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />                        
40                     </group>
41                 </form>
42             </field>
43         </record>
44
45     </data>
46 </openerp>
47