diff --git a/tryton/gui/window/view_form/view/list.py b/tryton/gui/window/view_form/view/list.py index 13f5c6eb4c..4ed22752a7 100644 --- a/tryton/gui/window/view_form/view/list.py +++ b/tryton/gui/window/view_form/view/list.py @@ -119,7 +119,8 @@ class AdaptModelGroup(gtk.GenericTreeModel): # Don't remove record from previous group # as the new parent will change the parent # This prevents concurrency conflict - record.group.record_removed.remove(record) + if record in record.group.record_removed: + record.group.record_removed.remove(record) group.add(record) record.modified_fields.setdefault(record.parent_name or 'id') group.move(record, 0)