[fix] small problem with o2m

bzr revid: nicolas.vanhoren@openerp.com-20120516130510-fdgu46p1fe8zqu2e
This commit is contained in:
niv-openerp 2012-05-16 15:05:10 +02:00
parent ab21c9ac81
commit 8c4fad6beb
1 changed files with 1 additions and 1 deletions

View File

@ -3385,7 +3385,7 @@ instance.web.form.AbstractFormPopup = instance.web.OldWidget.extend({
};
this.dataset.write_function = function(id, data, options, sup) {
var fct = self.options.write_function || sup;
return sup.call(this, id, data, options).then(self.on_write_completed);
return fct.call(this, id, data, options).then(self.on_write_completed);
};
this.dataset.parent_view = this.options.parent_view;
this.dataset.child_name = this.options.child_name;