[FIX] web: destroy modal on cross click or escape
Instead of just hidding it
Otherwise, when opening a new dialog, it is considered that there is a previous opened dialog, and this can lead to refresh the record which opened the hidden/previous dialog
This is related to rev. 57b48602fb
This commit is contained in:
@@ -172,7 +172,7 @@ instance.web.Dialog = instance.web.Widget.extend({
|
||||
$dialog_content.openerpClass();
|
||||
|
||||
this.$dialog_box.on('hidden.bs.modal', this, function() {
|
||||
self.close();
|
||||
self.destroy();
|
||||
});
|
||||
this.$dialog_box.modal('show');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user