summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2015-02-13 10:01:42 +0100
committerGéry Debongnie <ged@odoo.com>2015-02-13 10:01:42 +0100
commit4e2025719b09b147dfc4d8e71bccc449676a8ca4 (patch)
tree3cfff961ea482ee83bc48a0d4cbbbcba7ef49e7b /addons/web/static/src/js
parent34d45085358552794ee6303b387424ef1d409106 (diff)
[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
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/view_list_editable.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js
index 11a5d884f57..98585fd6757 100644
--- a/addons/web/static/src/js/view_list_editable.js
+++ b/addons/web/static/src/js/view_list_editable.js
@@ -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, {