diff --git a/tryton/tryton/gui/window/view_form/view/list.py b/tryton/tryton/gui/window/view_form/view/list.py index e119708e0f..c81bdc0b7b 100644 --- a/tryton/tryton/gui/window/view_form/view/list.py +++ b/tryton/tryton/gui/window/view_form/view/list.py @@ -968,7 +968,9 @@ class ViewTree(View): def __select_changed(self, tree_sel): previous_record = self.record - if previous_record and previous_record not in previous_record.group: + if (previous_record + and (previous_record not in previous_record.group + or previous_record.destroyed)): previous_record = None if tree_sel.get_mode() == Gtk.SelectionMode.SINGLE: