changeset ae6a4b7193be in modules/account_product:5.2
details: 
https://hg.tryton.org/modules/account_product?cmd=changeset;node=ae6a4b7193be
description:
        Add missing parent depends

        issue8712
        review258221002
        (grafted from 046480dafd25706392e502fe1075ee99e39bc48b)
diffstat:

 product.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 6ef774afcdd6 -r ae6a4b7193be product.py
--- a/product.py        Mon May 06 14:57:46 2019 +0200
+++ b/product.py        Wed Oct 16 21:18:31 2019 +0200
@@ -183,7 +183,7 @@
         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

Reply via email to