Preserve the filter text when executing the reload client action
Closes #14699
This commit is contained in:
1 parent
e38902b4ed
commit
4ab2b722f5
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user