changeset e9e5a27de63d in modules/production_work:4.8
details:
https://hg.tryton.org/modules/production_work?cmd=changeset;node=e9e5a27de63d
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 0c2de2d395cb -r e9e5a27de63d work.py
--- a/work.py Tue Feb 19 22:53:53 2019 +0100
+++ b/work.py Wed Oct 16 21:20:14 2019 +0200
@@ -185,7 +185,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