search in many2one fields retuns always the same ids

Bug #708186 reported by Marco Pattaro
6
This bug affects 1 person
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

Revision history for this message
Denis Konchekov (dkonchekov) wrote :

This bug is similar to bug https://bugs.launchpad.net/bugs/706352
There I watch similar behavior.

Revision history for this message
Denis Konchekov (dkonchekov) wrote :

Marco, try to update web-client from trunk, 4481 revision maybe fixes your problem.

Revision history for this message
Marco Pattaro (mpattaro) wrote : Re: [Bug 708186] Re: search in many2one fields retuns always the same ids

Thanks, it works now

Denis Konchekov wrote:
> Marco, try to update web-client from trunk, 4481 revision maybe fixes
> your problem.
>
>

Revision history for this message
DBR (OpenERP) (dbr-openerp) wrote :

Hello Marco,

I am closing this bug on the base of comment #3.

Thanks.

Changed in openobject-client-web:
status: New → Invalid
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Actually this is a duplicate of a resolved bug (706007) rather than an invalid bug

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.