changeset 210a2f9e087b in modules/product:4.6
details: https://hg.tryton.org/modules/product?cmd=changeset;node=210a2f9e087b
description:
Add missing parent depends
issue8712
review258221002
(grafted from f235f5fda4a1434d266af2b5410912b51492d1e2)
diffstat:
product.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 5c013e74fccf -r 210a2f9e087b product.py
--- a/product.py Mon Oct 30 15:04:26 2017 +0100
+++ b/product.py Wed Oct 16 21:19:46 2019 +0200
@@ -259,7 +259,7 @@
order_method = TemplateFunction.order(attr)
setattr(cls, 'order_%s' % attr, order_method)
- @fields.depends('template')
+ @fields.depends('template', '_parent_template.id')
def on_change_template(self):
for name, field in self._fields.iteritems():
if isinstance(field, TemplateFunction):