Reviewers: ,


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

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
@@ -35,7 +35,9 @@
         self.__removed = None # XXX dirty hack to allow update of has_child

     def added(self, group, record):
-        if group is self.group:
+        if (group is self.group
+                and (record.group is self.group
+                    or record.group.child_name == self.children_field)):
             path = self.on_get_path(record)
             iter_ = self.get_iter(path)
             self.row_inserted(path, iter_)


--
tryton-dev@googlegroups.com mailing list

Reply via email to