Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion addons/board/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
'assets': {
'web.assets_backend': [
'board/static/src/scss/dashboard.scss',
'board/static/src/js/action_manager_board_action.js',
'board/static/src/js/board_view.js',
'board/static/src/js/add_to_board_menu.js',
],
Expand Down
33 changes: 0 additions & 33 deletions addons/board/static/src/js/action_manager_board_action.js

This file was deleted.

13 changes: 13 additions & 0 deletions addons/board/static/src/js/board_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,19 @@ var BoardView = FormView.extend({
this._super.apply(this, arguments);
this.controllerParams.customViewID = viewInfo.custom_view_id;
},
/**
* @override
*/
_extractParamsFromAction(action) {
action.target = "inline";
action.flags = action.flags || {};
Object.assign(action.flags, {
hasActionMenus: false,
hasSearchView: false,
headless: true,
});
return this._super.apply(this, arguments);
},
});

return BoardView;
Expand Down
2 changes: 1 addition & 1 deletion addons/board/static/tests/dashboard_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ QUnit.test('dashboard basic rendering', async function (assert) {
"with a dashboard, the renderer should have the proper css class");
assert.containsOnce(form, '.o_dashboard .o_view_nocontent',
"should have a no content helper");
assert.strictEqual(form.$('.o_control_panel .breadcrumb-item').text(), "My Dashboard",
assert.strictEqual(form.getTitle(), "My Dashboard",
"should have the correct title");
form.destroy();
});
Expand Down