details:   https://code.tryton.org/tryton/commit/df2a9f9c4b54
branch:    default
user:      Cédric Krier <[email protected]>
date:      Fri Mar 20 19:19:15 2026 +0100
description:
        Preserve the filter text when executing the reload client action

        Closes #14699
diffstat:

 sao/src/screen.js                                   |  2 +-
 tryton/tryton/gui/window/view_form/screen/screen.py |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r ea9975eae3ca -r df2a9f9c4b54 sao/src/screen.js
--- a/sao/src/screen.js Wed Apr 01 15:22:17 2026 +0200
+++ b/sao/src/screen.js Fri Mar 20 19:19:15 2026 +0100
@@ -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 -r ea9975eae3ca -r df2a9f9c4b54 
tryton/tryton/gui/window/view_form/screen/screen.py
--- a/tryton/tryton/gui/window/view_form/screen/screen.py       Wed Apr 01 
15:22:17 2026 +0200
+++ b/tryton/tryton/gui/window/view_form/screen/screen.py       Fri Mar 20 
19:19:15 2026 +0100
@@ -1350,7 +1350,7 @@
                     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)

Reply via email to