[FIX] Issue when triggering 'write_completed' on AbstractFormPopup, argument not passed.

bzr revid: vta@openerp.com-20121108152231-cdtdxa1q9rl4eyre
This commit is contained in:
vta vta@openerp.com 2012-11-08 16:22:31 +01:00
parent 3a5421309b
commit e0094e20de
1 changed files with 2 additions and 2 deletions

View File

@ -4444,8 +4444,8 @@ instance.web.form.AbstractFormPopup = instance.web.Widget.extend({
};
this.dataset.write_function = function(id, data, options, sup) {
var fct = self.options.write_function || sup;
return fct.call(this, id, data, options).done(function() {
self.trigger('write_completed saved');
return fct.call(this, id, data, options).done(function(r) {
self.trigger('write_completed saved', r);
});
};
this.dataset.parent_view = this.options.parent_view;