-
- Downloads
[FIX] web: Allow array value for many2many search filter
Issue:
In an action, if we add to the context a key `search_default_x_ids`
(who is a many2many field) with an array of ids as value, it will
display/use only the first value in the search bar.
Cause:
If filter-type is 'field' and it's an array, it will take the first
value.
Solution:
Take first value of array only if field-type is a `many2one`.
Inspired by Odoo v13.0
opw-2596345
closes odoo/odoo#74839
Signed-off-by:
Julien Mougenot (jum) <jum@odoo.com>
Showing
- addons/web/static/src/js/control_panel/control_panel_model_extension.js 1 addition, 1 deletion...tic/src/js/control_panel/control_panel_model_extension.js
- addons/web/static/tests/control_panel/control_panel_model_extension_tests.js 47 additions, 0 deletions...ests/control_panel/control_panel_model_extension_tests.js
Loading
Please register or sign in to comment