summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-03-01 13:32:22 +0100
committerAaron Bohy <aab@odoo.com>2018-03-06 09:06:45 +0100
commitb466b3bc608b54d96ca0242b4d9c6176b76d88b6 (patch)
tree566161713ab5f13c6ef84a5658909599cc09046a /addons/web/static/src/js/views/basic
parent2534bd19fb118979766ebfa36610c7a3bb754fc3 (diff)
[FIX] web: create favorite filters in dialogs
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 view 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')
0 files changed, 0 insertions, 0 deletions