[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
This commit is contained in:
Xavier Morel 2012-06-12 17:08:20 +02:00
parent eb83b58e32
commit 0240ab1682
1 changed files with 1 additions and 1 deletions

View File

@ -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 = $('<tr>', {
id: _.uniqueId('oe-editable-row-'),