Skip to content

Commit

Permalink
[FIX] Issue when triggering 'write_completed' on AbstractFormPopup, a…
Browse files Browse the repository at this point in the history
…rgument not passed.

bzr revid: vta@openerp.com-20121108152231-cdtdxa1q9rl4eyre
  • Loading branch information
vta vta@openerp.com committed Nov 8, 2012
1 parent 3a54213 commit e0094e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/web/static/src/js/view_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e0094e2

Please sign in to comment.