c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #14007
[Bug 708186] [NEW] search in many2one fields retuns always the same ids
Public bug reported:
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
** Affects: openobject-client-web
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/708186
Title:
search in many2one fields retuns always the same ids
Status in OpenERP Web Client:
New
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
Follow ups
References