Skip to content
Snippets Groups Projects
Commit fbb7d5d5 authored by Holger Brunn's avatar Holger Brunn Committed by mreficent
Browse files

[FIX] base: don't break search in m2m with an empty right hand side

Operators child_of and parent_of fail if the right hand side is empty or yields empty results for many2many fields. We should avoid the exception generated by writing a query of the form ... id in ().

Closes https://github.com/odoo/odoo/pull/30121



closes odoo/odoo#38380

Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
Co-authored-by: default avatarmreficent <miquel.raich@eficent.com>
parent f1412e87
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment