[IMP] General review and cleaning of all views. Not finished. Worked on exted_groups...
[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="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','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
12                     <newline/>
13 <!--                    <field name="property_account_sending_goods" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('sale_ok','=',0)]}" />-->
14 <!--                    <field name="property_account_received_goods" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />-->
15                 </xpath>
16             </field>
17         </record>
18
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','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />
27                     <newline/>
28 <!--                    <field name="property_account_sending_goods" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('sale_ok','=',0)]}" />-->
29 <!--                    <field name="property_account_received_goods" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />-->
30                 </xpath>
31              </field>
32         </record>
33
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','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />                        
44 <!--                    <field name="property_account_sending_goods_categ" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('sale_ok','=',0)]}" />-->
45 <!--                    <field name="property_account_received_goods_categ" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" attrs="{'readonly':[('purchase_ok','=',0)]}" />-->
46                     </group>
47                 </form>
48             </field>
49         </record>
50
51     </data>
52 </openerp>
53