Fix move_into when record is not saved
review1107002 (transplanted from d4d4ec2782007eab231325592e4885da76ce1381)
This commit is contained in:
1 parent
a4614fcc4f
commit
484b60cf67
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user