search in many2one fields retuns always the same ids
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi, this only happens with web client, and only since 6.0.1.
When opening a many2one field (clicking on the lens) it works properly the first time (without restarting the web client), but after inserting more records in the related table, it keeps showing only the formers. If I restart the web client all goes well until I create more records.
I added some prints to the search method and found out that args filter out all of the ids newly inserted, something like this:
args = [('id', 'in', [4, 5, 14, 15]), ('id', 'in', [4, 5, 14, 15]), ('id', 'in', [4, 5, 14, 15]), ('id', 'in', [4, 5, 14, 15]), ('id', 'in', [4, 5, 14, 15])]
Why are there args if no domain is defined? I guess it should be some kind of caching, but it's not working properly. Moreover the same condition is "and combined" several times and the list keeps growing with each call.
Thanks
Marco
This bug is similar to bug https:/ /bugs.launchpad .net/bugs/ 706352
There I watch similar behavior.