[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.
This commit is contained in:
Aaron Bohy
2016-09-16 12:05:38 +02:00
parent 6647e1f8a9
commit 59710faa0a
+1 -3
View File
@@ -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 = [];