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#74936 X-original-commit: 1083bd204a10c9ec1708ba09e85d50fcba8ba8af Signed-off-by: Julien Mougenot (jum) <jum@odoo.com> Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>