Allow to use the accounts and taxes of parent category

issue1602
review269002
This commit is contained in:
Cédric Krier committed 2012-03-12 22:42:38 +01:00
1 parent 2b9148a3a4
commit 367144420b
1 file changed
+6 -2
+6 -2
View File
@@ -13,8 +13,12 @@ class Category(ModelSQL, ModelView):
('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()