Add missing parent depends
issue8712 review258221002
This commit is contained in:
+1
-1
@@ -183,7 +183,7 @@ class Category(CompanyMultiValueMixin, metaclass=PoolMeta):
|
||||
else:
|
||||
return [x.id for x in getattr(self, name[:-5])]
|
||||
|
||||
@fields.depends('parent', 'accounting')
|
||||
@fields.depends('parent', '_parent_parent.accounting', 'accounting')
|
||||
def on_change_with_accounting(self):
|
||||
if self.parent:
|
||||
return self.parent.accounting
|
||||
|
||||
Reference in New Issue
Block a user