Add missing parent depends

issue8712
review258221002
This commit is contained in:
Cédric Krier committed 2019-10-16 21:20:14 +02:00
1 parent 2d9a1658c6
commit d29e4b3677
1 file changed
+1 -1
+1 -1
View File
@@ -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