changeset 45c80ddc93eb in tryton:6.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=45c80ddc93eb
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
(grafted from 79c6c52e305b29655fa07feb49233a83adb41a64)
diffstat:
tryton/gui/window/win_export.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 200a2666feae -r 45c80ddc93eb 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
@@ -185,7 +185,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,