From df48a41ae76638f87bf75754890ab243259146c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 16 Oct 2019 21:19:46 +0200 Subject: [PATCH] Add missing parent depends issue8712 review258221002 --- product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product.py b/product.py index 1716f8f20f..6895226fd9 100644 --- a/product.py +++ b/product.py @@ -263,7 +263,7 @@ class Product( # Prevent NotImplementedError for One2Many pass - @fields.depends('template') + @fields.depends('template', '_parent_template.id') def on_change_template(self): for name, field in self._fields.items(): if isinstance(field, TemplateFunction):