From e5b53e100e54e8cf6f9b196cf3a7b2088e8b039b Mon Sep 17 00:00:00 2001 From: Angel Moya - PESOL Date: Tue, 15 May 2018 19:17:18 +0200 Subject: [PATCH] FIX discard On any form, if you edit and try to discard you get an error check this lines: https://github.com/odoo/odoo/blob/11.0/addons/web/static/src/js/views/basic/basic_controller.js#L82 https://github.com/odoo/odoo/blob/11.0/addons/web/static/src/js/core/dialog.js#L235 --- web_dialog_size/static/src/js/web_dialog_size.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_dialog_size/static/src/js/web_dialog_size.js b/web_dialog_size/static/src/js/web_dialog_size.js index f1684791..93056f72 100644 --- a/web_dialog_size/static/src/js/web_dialog_size.js +++ b/web_dialog_size/static/src/js/web_dialog_size.js @@ -32,7 +32,8 @@ Dialog.include({ handle: '.modal-header', helper: false }); - } + }; + return this; }, close: function() {