changeset 3ab35ff12281 in modules/production_work:4.6
details:
https://hg.tryton.org/modules/production_work?cmd=changeset;node=3ab35ff12281
description:
Add missing parent depends
issue8712
review258221002
(grafted from 018cd75e1181558a8b5ab1b59735b1aff118491e)
diffstat:
work.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 5c3ac725a2d9 -r 3ab35ff12281 work.py
--- a/work.py Mon Oct 30 15:58:08 2017 +0100
+++ b/work.py Wed Oct 16 21:20:14 2019 +0200
@@ -190,7 +190,7 @@
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