Hide account stock for non goods

issue2683
review452001
This commit is contained in:
Cédric Krier committed 2012-08-11 12:21:10 +02:00
1 parent 262992628e
commit 3e0a60cb9f
1 file changed
+2 -1
+2 -1
View File
@@ -33,7 +33,8 @@ class Template(ModelSQL, ModelView):
],
states={
'invisible': ((~Eval('context', {}).get('company'))
| Eval('account_category')),
| Eval('account_category')
| (Eval('type') != 'goods')),
'required': ((Eval('type') == 'goods')
& Eval('context', {}).get('company')
& ~Eval('account_category')),