Check if record is still in the multiselection when displaying

The records of current value could no more be in the selection if it has changed
because of the domain. So it must no more be displaied and it will be removed by
the call to set_client.

issue4029
review9541002
This commit is contained in:
Cédric Krier committed 2014-08-19 14:36:45 +02:00
1 parent 723caeea73
commit 4c73900104
1 file changed
+2 -1
@@ -83,7 +83,8 @@ class MultiSelection(Widget, SelectionMixin):
group = field.get_client(record)
for element in group:
if (element not in group.record_removed
and element not in group.record_deleted):
and element not in group.record_deleted
and element.id in id2path):
selection.select_path(id2path[element.id])
finally:
selection.handler_unblock_by_func(self.changed)