From e11ace149e4d74f74baa956710f3d6468ae3bcc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 16 Oct 2019 21:18:31 +0200 Subject: [PATCH] Add missing parent depends issue8712 review258221002 --- product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.py b/product.py index caf5b906fc..08b2049071 100644 --- a/product.py +++ b/product.py @@ -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