Reviewers: ,


Please review this at http://codereview.tryton.org/452001/

Affected files:
  M product.py


Index: product.py
===================================================================
--- a/product.py
+++ b/product.py
@@ -33,7 +33,8 @@
                 ],
             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')),


--
[email protected] mailing list

Reply via email to