changeset 86462ba82294 in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset&node=86462ba82294
description:
Add type as depends of parent location field
issue10487
diffstat:
location.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 48f51e189369 -r 86462ba82294 location.py
--- a/location.py Fri Jun 11 00:25:45 2021 +0200
+++ b/location.py Fri Jun 11 08:36:26 2021 +0200
@@ -203,6 +203,7 @@
childs_domain.append(If(Eval('type') == type_,
('type', 'in', childs_mapping[type_]), ()))
cls.parent.domain = parent_domain
+ cls.parent.depends.append('type')
cls.childs.domain = childs_domain
cls.childs.depends.extend(['flat_childs', 'type'])