[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:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user