[FIX] Issue when triggering 'write_completed' on AbstractFormPopup, argument not passed.
bzr revid: vta@openerp.com-20121108152231-cdtdxa1q9rl4eyre
This commit is contained in:
parent
3a5421309b
commit
e0094e20de
|
@ -4444,8 +4444,8 @@ instance.web.form.AbstractFormPopup = instance.web.Widget.extend({
|
||||||
};
|
};
|
||||||
this.dataset.write_function = function(id, data, options, sup) {
|
this.dataset.write_function = function(id, data, options, sup) {
|
||||||
var fct = self.options.write_function || sup;
|
var fct = self.options.write_function || sup;
|
||||||
return fct.call(this, id, data, options).done(function() {
|
return fct.call(this, id, data, options).done(function(r) {
|
||||||
self.trigger('write_completed saved');
|
self.trigger('write_completed saved', r);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
this.dataset.parent_view = this.options.parent_view;
|
this.dataset.parent_view = this.options.parent_view;
|
||||||
|
|
Loading…
Reference in New Issue