From 4ab2b722f5d5dfdb9e6ca995d0b50862233ed9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 20 Mar 2026 19:19:15 +0100 Subject: [PATCH] Preserve the filter text when executing the reload client action Closes #14699 --- sao/src/screen.js | 2 +- tryton/tryton/gui/window/view_form/screen/screen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sao/src/screen.js b/sao/src/screen.js index 842fa82a0e..c82f4c57cf 100644 --- a/sao/src/screen.js +++ b/sao/src/screen.js @@ -2140,7 +2140,7 @@ if (this.current_view && ~['tree', 'graph', 'calendar'].indexOf(this.current_view.view_type) && !this.group.parent) { - return this.search_filter(); + return this.search_filter(this.screen_container.get_text()); } } else if (action == 'reload menu') { return Sao.Session.current_session.reload_context() diff --git a/tryton/tryton/gui/window/view_form/screen/screen.py b/tryton/tryton/gui/window/view_form/screen/screen.py index 316095de43..8d20be8f70 100644 --- a/tryton/tryton/gui/window/view_form/screen/screen.py +++ b/tryton/tryton/gui/window/view_form/screen/screen.py @@ -1350,7 +1350,7 @@ class Screen: and self.current_view.view_type in [ 'tree', 'graph', 'calendar'] and not self.parent): - self.search_filter() + self.search_filter(self.screen_container.get_text()) elif action == 'reload menu': from tryton.gui import Main RPCContextReload(Main().sig_win_menu)