From 3c0a1ea34176d059903ab6b2377f2244ace8e88d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 28 Mar 2025 17:14:12 +0100 Subject: [PATCH] Force record message when selection has changed but not the current record This is needed to update the toolbar label about the number of selected record. Closes #13950 --- tryton/tryton/gui/window/view_form/view/list.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tryton/tryton/gui/window/view_form/view/list.py b/tryton/tryton/gui/window/view_form/view/list.py index c687f2556a..a3add71937 100644 --- a/tryton/tryton/gui/window/view_form/view/list.py +++ b/tryton/tryton/gui/window/view_form/view/list.py @@ -1155,6 +1155,9 @@ class ViewTree(View): records.append(model.get_value(iter_, 0)) if self.record not in records: self.record = records[0] + else: + # Force record_message + self.record = self.record else: self.record = None