details: https://code.tryton.org/tryton/commit/ed2d96e144af
branch: 7.8
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
(grafted from df2a9f9c4b5411889c07ffaf99d58575e95fe916)
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 398fd2c569cd -r ed2d96e144af sao/src/screen.js
--- a/sao/src/screen.js Tue Mar 10 14:05:19 2026 +0100
+++ b/sao/src/screen.js Fri Mar 20 19:19:15 2026 +0100
@@ -2132,7 +2132,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 398fd2c569cd -r ed2d96e144af
tryton/tryton/gui/window/view_form/screen/screen.py
--- a/tryton/tryton/gui/window/view_form/screen/screen.py Tue Mar 10
14:05:19 2026 +0100
+++ b/tryton/tryton/gui/window/view_form/screen/screen.py Fri Mar 20
19:19:15 2026 +0100
@@ -1349,7 +1349,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)