Allow to use the accounts and taxes of parent category
issue1602 review269002
This commit is contained in:
1 parent
2b9148a3a4
commit
367144420b
1 file changed
+6
-2
+6
-2
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user