changeset a481699b16b6 in modules/production_work:5.2
details:
https://hg.tryton.org/modules/production_work?cmd=changeset;node=a481699b16b6
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 b5d65d7da911 -r a481699b16b6 work.py
--- a/work.py Wed Jul 17 21:19:12 2019 +0200
+++ b/work.py Wed Oct 16 21:20:14 2019 +0200
@@ -154,7 +154,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