changeset 93eba4f2a24c in modules/customs:4.4
details: https://hg.tryton.org/modules/customs?cmd=changeset;node=93eba4f2a24c
description:
        Add missing parent depends

        issue8712
        review258221002
        (grafted from 5f543723b6621e423b4ce0473f1d79d4cf6bf07b)
diffstat:

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

diffs (12 lines):

diff -r 5ca6d79e9c5c -r 93eba4f2a24c product.py
--- a/product.py        Mon May 01 20:29:26 2017 +0200
+++ b/product.py        Wed Oct 16 21:19:32 2019 +0200
@@ -52,7 +52,7 @@
     def default_tariff_codes_parent(cls):
         return False
 
-    @fields.depends('parent', 'customs')
+    @fields.depends('parent', '_parent_parent.customs', 'customs')
     def on_change_with_customs(self):
         if self.parent:
             return self.parent.customs

Reply via email to