changeset b21d6fe89040 in modules/purchase:5.2
details: https://hg.tryton.org/modules/purchase?cmd=changeset;node=b21d6fe89040
description:
Add missing parent depends
issue8712
review258221002
(grafted from 16cbb3ba462eba4397acd0996deed1bd4bd683af)
diffstat:
product.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 89b64c48aa46 -r b21d6fe89040 product.py
--- a/product.py Mon May 06 15:09:22 2019 +0200
+++ b/product.py Wed Oct 16 21:20:29 2019 +0200
@@ -258,7 +258,8 @@
company = Company(Transaction().context['company'])
return company.currency.id
- @fields.depends('product', 'template')
+ @fields.depends(
+ 'product', '_parent_product.template')
def on_change_product(self):
if self.product:
self.template = self.product.template