[FIX] broken saving of new row in editable list
bzr revid: xmo@openerp.com-20110804153016-24mslsbbxpn07f3t
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user