Reviewers: ,


Please review this at http://codereview.tryton.org/552002/

Affected files:
  M tryton/gui/window/view_form/view/list.py


Index: tryton/gui/window/view_form/view/list.py
===================================================================
--- a/tryton/gui/window/view_form/view/list.py
+++ b/tryton/gui/window/view_form/view/list.py
@@ -77,10 +77,12 @@
                     record.group != self.group and
                     len(record.children_group(self.children_field)) <= 1):
                 path = self.on_get_path(record.parent)
-                iter_ = self.get_iter(path)
-                self.__removed = record  # XXX check for thread
-                self.row_has_child_toggled(path, iter_)
-                self.__removed = None
+ # Calling get_iter force a reload of the records and break the
+                # clear of the group.
+                #iter_ = self.get_iter(path)
+                #self.__removed = record  # XXX check for thread
+                #self.row_has_child_toggled(path, iter_)
+                #self.__removed = None

     def append(self, model):
         self.group.add(model)


--
[email protected] mailing list

Reply via email to