c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #14293
[Bug 708186] Re: search in many2one fields retuns always the same ids
*** This bug is a duplicate of bug 706007 ***
https://bugs.launchpad.net/bugs/706007
Actually this is a duplicate of a resolved bug (706007) rather than an
invalid bug
** This bug has been marked a duplicate of bug 706007
[6.0.1] list view for access rights in user form. Not all access groups are listed in.
* You can subscribe to bug 706007 by following this link: https://bugs.launchpad.net/openobject-client-web/+bug/706007/+subscribe
--
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:
Invalid
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
References