[FIX] web: viewlist editable use correct record_id in dataset

When clicking on an element in a listview editable, the record_id
is not updated in the dataset, which means that when you switch to form
view, the list view does not display the last selected record.

Also, it should fix the issue solved by PR pull/2725
This commit is contained in:
Géry Debongnie
2015-02-13 10:01:42 +01:00
parent 34d4508535
commit 4e2025719b
@@ -223,6 +223,7 @@ openerp.web.list_editable = function (instance) {
var item = false;
if (record) {
item = record.attributes;
this.dataset.select_id(record.get('id'));
} else {
record = this.make_empty_record(false);
this.records.add(record, {