From 59710faa0aaef6e8952a70e7405bbc92143a49ef Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Fri, 16 Sep 2016 12:05:38 +0200 Subject: [PATCH] [FIX] board: correctly pass options arg to do_action The dashboard instantiates an action manager for each view it has to display. It then replaces the do_action() function of those action managers by its own one, forgetting to pass the second argument 'options'. Thus, when do_action was called by a view of the dashboard (e.g. a button in a list view), it was called without the options. --- addons/board/static/src/js/dashboard.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/board/static/src/js/dashboard.js b/addons/board/static/src/js/dashboard.js index b71cd3c63b1..356b0906ff9 100644 --- a/addons/board/static/src/js/dashboard.js +++ b/addons/board/static/src/js/dashboard.js @@ -225,9 +225,7 @@ var DashBoard = form_common.FormWidget.extend({ this.action_managers.push(am); am.appendTo($action); am.do_action(action); - am.do_action = function (action) { - self.do_action(action); - }; + am.do_action = this.do_action.bind(this); if (am.inner_widget) { var new_form_action = function(id, editable) { var new_views = [];