From 2eadf39cb2af6d831b0d6cca83a1b550c990a82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80ngel=20=C3=80lvarez?= Date: Tue, 19 Oct 2021 08:33:53 +0200 Subject: [PATCH] fix tests --- production.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/production.py b/production.py index 055cec9..0373008 100644 --- a/production.py +++ b/production.py @@ -213,8 +213,7 @@ class Production(metaclass=PoolMeta): return [s.id for s in self.production_template.cost_distribution_templates] - @fields.depends('cost_distribution_template', - '_parent_cost_distribution_template.cost_distribution_templates') + @fields.depends('production_template') def on_change_with_cost_distribution_templates(self, name=None): if self.production_template: return [s.id for s in self.production_template.outputs]