From 35556259909c9e889a14aee43c6b41f84f940ee2 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 24 Oct 2016 11:00:42 +0200 Subject: [PATCH] [FIX] web: do_action in target='new': specify Dialog size Instantiate the Dialog with the optional dialog_size specified in the action's context. --- addons/web/static/src/js/action_manager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/js/action_manager.js b/addons/web/static/src/js/action_manager.js index b6a33e443d1..7e8b89dda68 100644 --- a/addons/web/static/src/js/action_manager.js +++ b/addons/web/static/src/js/action_manager.js @@ -701,7 +701,8 @@ var ActionManager = Widget.extend({ this.dialog = new Dialog(this, { title: executor.action.name, dialogClass: executor.klass, - buttons: [] + buttons: [], + size: executor.action.context.dialog_size, }); // chain on_close triggers with previous dialog, if any