'id' in editable list is not set correctly

Bug #1289193 reported by Thomas Rehn on 2014-03-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

In an editable list something like [('foreign_key_id','=',id)] uses a wrong id for evaluation (always the first id of the list) unless a row is selected explicitly by its checkbox before editing. This problem occurs in Chrome 33 and Firefox 27.

To reproduce:
1. Find a tree view of a model M with 'editable' property
2. Add a many2one field F to the view with a foreign key to M, say "fk_id"
3. Add a domain [('fk_id','=',id)] to F in the tree view
4. In the rendered tree view click on a rendered field F to get the drop-down inline-editing menu.
5. Observe that the id in the domain gets a wrong value during evaluation.

The attached patch solves the problem for me (setting the correct dataset.index before editing).

Thomas Rehn (thomas-rehn) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers