From d29e4b36772ba4efbc298fa20d82b8ff601828a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 16 Oct 2019 21:20:14 +0200 Subject: [PATCH] Add missing parent depends issue8712 review258221002 --- work.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/work.py b/work.py index 5b263a3bf9..9e878805a7 100644 --- a/work.py +++ b/work.py @@ -152,7 +152,7 @@ class Work(sequence_ordered(), ModelSQL, ModelView): def default_company(cls): return Transaction().context.get('company') - @fields.depends('production') + @fields.depends('production', '_parent_production.warehouse') def on_change_with_warehouse(self, name=None): if self.production: return self.production.warehouse.id