changeset 2e94d0d1afc3 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=2e94d0d1afc3
description:
Test all widgets of the field for expand
A form can have multiple widget for the same field, so we must test all
of
them for expand.
issue8016
review51621002
diffstat:
tryton/gui/window/wizard.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (18 lines):
diff -r 4c503e480290 -r 2e94d0d1afc3 tryton/gui/window/wizard.py
--- a/tryton/gui/window/wizard.py Wed Feb 13 10:46:27 2019 +0100
+++ b/tryton/gui/window/wizard.py Wed Feb 13 10:56:22 2019 +0100
@@ -405,9 +405,11 @@
if view.view_type == 'form':
expand = False
for name in view.get_fields():
- widget = view[name]
- if widget.expand:
- expand = True
+ for widget in view.widgets[name]:
+ if widget.expand:
+ expand = True
+ break
+ if expand:
break
else:
expand = True