[FIX] broken saving of new row in editable list

bzr revid: xmo@openerp.com-20110804153016-24mslsbbxpn07f3t
This commit is contained in:
Xavier Morel
2011-08-04 17:30:16 +02:00
parent 09cb505ef9
commit e92d888f72
@@ -213,6 +213,9 @@ openerp.base.list.editable = function (openerp) {
save_row: function (edit_next) {
var self = this;
this.edition_form.do_save(function (result) {
if (result.created && !self.edition_index) {
self.edition_index = self.dataset.index;
}
self.cancel_pending_edition().then(function () {
$(self).trigger('saved', [self.dataset]);
if (!edit_next) {