From 4c7390010448a6249cbf70db02428d0d18e98cc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 19 Aug 2014 14:36:45 +0200 Subject: [PATCH] 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 --- tryton/gui/window/view_form/view/form_gtk/multiselection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/form_gtk/multiselection.py b/tryton/gui/window/view_form/view/form_gtk/multiselection.py index 6e60ed82eb..9581b3763c 100644 --- a/tryton/gui/window/view_form/view/form_gtk/multiselection.py +++ b/tryton/gui/window/view_form/view/form_gtk/multiselection.py @@ -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)