[IMP]Stock Valuation Account (Incoming)/(Outgoing) are readonly when type is not inventory/production, we should hide these fields if type is not inventory/production

bzr revid: sgo@tinyerp.com-20121022065231-4f4piutou72z6v90
This commit is contained in:
Sanjay Gohel (Open ERP)
2012-10-22 12:22:31 +05:30
parent 5c710c4558
commit 74bb979f19
+3 -3
View File
@@ -551,9 +551,9 @@
<field name="posx"/>
<field name="posy"/>
<field name="posz"/>
</group><group string="Accounting Information">
<field name="valuation_in_account_id" attrs="{'readonly':[('usage','not in',('inventory','production'))]}"/>
<field name="valuation_out_account_id" attrs="{'readonly':[('usage','not in',('inventory','production'))]}"/>
</group><group string="Accounting Information" attrs="{'invisible':[('usage','not in',('inventory','production'))]}">
<field name="valuation_in_account_id"/>
<field name="valuation_out_account_id"/>
</group>
</group>
<separator string="Additional Information"/>