lp bug: https://launchpad.net/bugs/873272 fixed
bzr revid: nicolas.vanhoren@openerp.com-
20111013115828-ctbslk34qif4cfwt
this.setup_form_view();
},
on_write: function(id, data) {
- this.stop();
if (!this.options.auto_write)
return;
var self = this;
$buttons.html(QWeb.render("FormOpenPopup.form.buttons"));
var $nbutton = $buttons.find(".oe_formopenpopup-form-save");
$nbutton.click(function() {
- self.view_form.do_save();
+ self.view_form.do_save().then(function() {
+ self.stop();
+ });
});
var $cbutton = $buttons.find(".oe_formopenpopup-form-close");
$cbutton.click(function() {