changeset 79c6c52e305b in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset&node=79c6c52e305b
description:
Do not try to expand pseudo-children of reference field
Since issue5667 the export dialog adds pseudo children to reference
fields but
they are not children nodes but just sibling. So we must not try to
expand the
node of the reference field when loading an predefined export.
issue10875
review383511003
diffstat:
tryton/gui/window/win_export.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 07165c9a8fc1 -r 79c6c52e305b tryton/gui/window/win_export.py
--- a/tryton/gui/window/win_export.py Sun Oct 31 10:20:24 2021 +0100
+++ b/tryton/gui/window/win_export.py Sun Oct 31 10:42:08 2021 +0100
@@ -186,7 +186,7 @@
def on_row_expanded(self, treeview, iter, path):
child = self.model1.iter_children(iter)
- if self.model1.get_value(child, 0) is None:
+ if child and self.model1.get_value(child, 0) is None:
prefix_field = self.model1.get_value(iter, 1)
string_, relation = self.fields[prefix_field]
self.model_populate(self._get_fields(relation), iter,