[FIX] Better fix than Revision: 3338 revid:fme@openerp.com-20121106094244-oybwglprd1v3g5xn

bzr revid: fme@openerp.com-20121106134145-uzijdxde2otoxdfy
This commit is contained in:
Fabien Meghazi 2012-11-06 14:41:45 +01:00
parent dc0fe27bdc
commit d221165c59
1 changed files with 6 additions and 0 deletions

View File

@ -4414,6 +4414,12 @@ instance.web.form.AbstractFormPopup = instance.web.Widget.extend({
this.trigger('closed');
this.destroy();
},
destroy: function () {
if (this.$el.is(":data(dialog)")) {
this.$el.dialog('close');
}
this._super();
},
});
/**