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

        issue8712
        review258221002
        (grafted from 4292f6caa1c79f4b8431cbec9e23647cab0e8da5)
diffstat:

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

diffs (13 lines):

diff -r f1253b99ea16 -r d4b4180f9740 product.py
--- a/product.py        Mon May 06 15:12:17 2019 +0200
+++ b/product.py        Wed Oct 16 21:22:15 2019 +0200
@@ -34,7 +34,8 @@
     name = fields.Char("Name", translate=True)
     code = fields.Char("Code")
 
-    @fields.depends('product', 'template')
+    @fields.depends(
+        'product', '_parent_product.template')
     def on_change_product(self):
         if self.product:
             self.template = self.product.template

Reply via email to