Reviewers: ,
Please review this at http://codereview.tryton.org/269002/ Affected files: M product.py Index: product.py =================================================================== --- a/product.py +++ b/product.py @@ -13,8 +13,12 @@ ('company', '=', Eval('context', {}).get('company', 0)), ], states={ - 'invisible': ~Eval('context', {}, ).get('company'), - })) + 'invisible': (~Eval('context', {}, ).get('company') + | Eval('account_parent')), + }, + depends=['account_parent'])) + account_cogs_used = fields.Function(fields.Many2One('account.account', + 'Account Cost of Goods Sold Used'), 'get_account') Category() -- [email protected] mailing list
