-
- Downloads
[FIX] web,lunch: separate search panel domain
Before this commit, the SearchPanel widget was given a single unified domain coming from the view/controller. The issue was that some modules injected additional leaves in this domain and there was no way to remove them/separate them from the original view/controller domain. Now, another paramater (the `viewDomain`) is given to the SearchPanel, containing the distinct domain related to the view. The Lunch module has been adapted to give the `location` domain through this new key. Note that some tests steps had to be inverted since the method retreiving the domain of the view/controller is asynchronous (needed by Lunch to give time to the model to be loaded). It mainly concerns the RPC order which does not matter in this case. Task 2239706 closes odoo/odoo#49720 X-original-commit: e895e553 Signed-off-by:Julien Mougenot (jum) <jum@odoo.com> Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
Showing
- addons/lunch/static/src/js/lunch_kanban_controller.js 2 additions, 5 deletionsaddons/lunch/static/src/js/lunch_kanban_controller.js
- addons/lunch/static/src/js/lunch_kanban_model.js 3 additions, 10 deletionsaddons/lunch/static/src/js/lunch_kanban_model.js
- addons/lunch/static/src/js/lunch_kanban_view.js 3 additions, 11 deletionsaddons/lunch/static/src/js/lunch_kanban_view.js
- addons/lunch/static/tests/lunch_kanban_tests.js 26 additions, 6 deletionsaddons/lunch/static/tests/lunch_kanban_tests.js
- addons/web/static/src/js/views/abstract_controller.js 9 additions, 8 deletionsaddons/web/static/src/js/views/abstract_controller.js
- addons/web/static/src/js/views/abstract_view.js 13 additions, 0 deletionsaddons/web/static/src/js/views/abstract_view.js
- addons/web/static/src/js/views/search_panel.js 8 additions, 4 deletionsaddons/web/static/src/js/views/search_panel.js
Loading
Please register or sign in to comment