changeset 19dab7e4b4bf in modules/account_product:4.6
details: 
https://hg.tryton.org/modules/account_product?cmd=changeset;node=19dab7e4b4bf
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 3580d47a6e76 -r 19dab7e4b4bf product.py
--- a/product.py        Thu Mar 01 23:16:41 2018 +0100
+++ b/product.py        Wed Oct 16 21:18:31 2019 +0200
@@ -186,7 +186,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