changeset 20da0491495d in modules/account_product:4.4
details: 
https://hg.tryton.org/modules/account_product?cmd=changeset;node=20da0491495d
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 c2e99c42f970 -r 20da0491495d product.py
--- a/product.py        Mon May 01 20:24:40 2017 +0200
+++ b/product.py        Wed Oct 16 21:18:31 2019 +0200
@@ -184,7 +184,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