changeset 671f837cec98 in tryton:5.0 details: https://hg.tryton.org/tryton?cmd=changeset&node=671f837cec98 description: Loop over children iter after expanded the autodetected parent
issue10813 review375641003 (grafted from 81f7ed3823caa12346156a1d37f55aa67775bd40) diffstat: tryton/gui/window/win_import.py | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diffs (18 lines): diff -r c9399513bdeb -r 671f837cec98 tryton/gui/window/win_import.py --- a/tryton/gui/window/win_import.py Fri Oct 08 19:10:46 2021 +0200 +++ b/tryton/gui/window/win_import.py Fri Oct 08 19:12:56 2021 +0200 @@ -125,9 +125,12 @@ (prefix + parent): self.on_row_expanded(self.view1, iter, self.model1.get_path(iter)) + iter = self.model1.iter_children(iter) + prefix = parent + '/' break - iter = self.model1.iter_next(iter) - prefix = parent + '/' + else: + iter = self.model1.iter_next(iter) + if word in self.fields_invert: name = word field = self.fields_invert[word]