Corrections on Products(Sell/purchase properties)
authorJay (Open ERP) <jvo@tinyerp.com>
Tue, 13 Jan 2009 08:41:54 +0000 (14:11 +0530)
committerJay (Open ERP) <jvo@tinyerp.com>
Tue, 13 Jan 2009 08:41:54 +0000 (14:11 +0530)
bzr revid: jvo@tinyerp.com-20090113084154-t2ki18csd18huubu

addons/account/product_view.xml

index cff72df..2b3088e 100644 (file)
                     <page string="Accounting">
                         <separator string="Sales Properties" colspan="2"/>
                         <separator string="Purchases Properties" colspan="2"/>
-                        <field name="property_account_income"/>
-                        <field name="property_account_expense"/>
+                        <field name="property_account_income" attrs="{'readonly':[('sale_ok','=',0)]}" />
+                        <field name="property_account_expense" attrs="{'readonly':[('purchase_ok','=',0)]}" />
 
                         <separator string="Sale Taxes" colspan="2"/>
                         <separator string="Purchase Taxes" colspan="2"/>
-                        <field name="taxes_id" nolabel="1" colspan="2"/>
-                        <field name="supplier_taxes_id" nolabel="1" colspan="2"/>
+                        <field name="taxes_id" nolabel="1" colspan="2" attrs="{'readonly':[('sale_ok','=',0)]}"/>
+                        <field name="supplier_taxes_id" nolabel="1" colspan="2" attrs="{'readonly':[('purchase_ok','=',0)]}"/>
                     </page>
                 </notebook>
             </field>