3
0
Fork 0

Merge PR #2213 into 13.0

Signed-off-by pedrobaeza
13.0
OCA-git-bot 2022-05-10 16:08:37 +00:00
commit 3600209249
1 changed files with 8 additions and 2 deletions

View File

@ -52,13 +52,19 @@ odoo.define("web_dialog_size.web_dialog_size", function(require) {
return this._super.apply(this, arguments); return this._super.apply(this, arguments);
}, },
_trigger_resize: function() {
if (this.getParent() && this.getParent().trigger_up) {
this.trigger_up("resize");
}
},
_extending: function() { _extending: function() {
var dialog = this.$modal.find(".modal-dialog"); var dialog = this.$modal.find(".modal-dialog");
dialog.addClass("dialog_full_screen"); dialog.addClass("dialog_full_screen");
dialog.find(".dialog_button_extend").hide(); dialog.find(".dialog_button_extend").hide();
dialog.find(".dialog_button_restore").show(); dialog.find(".dialog_button_restore").show();
// Recompute o2m columns width if needed // Recompute o2m columns width if needed
this.trigger_up("resize"); this._trigger_resize();
}, },
_restore: function() { _restore: function() {
@ -67,7 +73,7 @@ odoo.define("web_dialog_size.web_dialog_size", function(require) {
dialog.find(".dialog_button_restore").hide(); dialog.find(".dialog_button_restore").hide();
dialog.find(".dialog_button_extend").show(); dialog.find(".dialog_button_extend").show();
// Recompute o2m columns width if needed // Recompute o2m columns width if needed
this.trigger_up("resize"); this._trigger_resize();
}, },
}); });
}); });