Problems searching by fields of type related
Bug #635102 reported by
Albert Cervera i Areny - http://www.NaN-tic.com
This bug report is a duplicate of:
Bug #626806: Search : [(M2M/O2M ,operator, False/[])].
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
It's not possible to search with a domain like this if 'invoice_id' is of type fields.related: [('invoice_
The problem is that at the function always returns a domain with the 'in' operator, but if the list of ids for 'in' is empty, ALL records match. What we really want is that NONE of them match.
The attached patch fixes the problem.
To post a comment you must log in.
+1.
tottally agree.
I confirm the bug, i don't try the patch yet.
Regards.