From 0240ab1682e423c7b74bb594a2213591b5f1e3ff Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 12 Jun 2012 17:08:20 +0200 Subject: [PATCH] [CHG] try saving any row under edition when starting an (other) row edition editable lists should not lose data unless explicitly asked to forget about it by user action bzr revid: xmo@openerp.com-20120612150820-z97jxme1vcu3x3jd --- addons/web/static/src/js/view_list_editable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/view_list_editable.js b/addons/web/static/src/js/view_list_editable.js index 57ac2bfa1de..07feed91bbd 100644 --- a/addons/web/static/src/js/view_list_editable.js +++ b/addons/web/static/src/js/view_list_editable.js @@ -194,7 +194,7 @@ openerp.web.list_editable = function (openerp) { }, render_row_as_form: function (row) { var self = this; - this.cancel_pending_edition().then(function () { + this.ensure_saved().then(function () { var record_id = $(row).data('id'); var $new_row = $('', { id: _.uniqueId('oe-editable-row-'),