summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-02-28 14:15:06 +0100
committerAaron Bohy <aab@odoo.com>2018-03-06 09:11:11 +0100
commit16a27c94e01aa383fea9a14089668233f676692a (patch)
tree72b3ebafbe87e40066e111cca68b52424aff08f2 /addons/web/static/src/js/views/basic/basic_controller.js
parent6bcf9ac2ee3a52c9f0977d8cb4f4bf2cefe4ad70 (diff)
[FIX] web: create favorite filters in dialogs
This is a manual forwardport of rev. b466b3bc. Consider the following scenario: open in edit mode a form view containing a many2many field displayed with widget many2many_tags, on the many2many field dropdown, click on 'Search More' (it opens a dialog), and in the dialog, try to save the current search in the searchview's favorite menu. Before this rev., it tried to retrieve the context of the active controller in the closest instance of a ViewManager-like widget in the SearchView's ancestors. First, it is wrong as in the given scenario, the requested context is actually the one of the list controller in the dialog, not the one of the form controller in the background. Second, it produces a crash in Studio, when trying to save filters in the dialog opened by clicking on 'Search More' on the groups many2many field in the sidebar. This part of the code can't be tested in this version, but tests will be added in master. Fixes #23293
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions