blob: 05414572311ea59df83d4979d7627f7b0614bcb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
odoo.define('board.ActionManager', function (require) {
"use strict";
/**
* The purpose of this file is to patch the ActionManager to properly generate
* the flags for the 'ir.actions.act_window' of model 'board.board'.
*/
var ActionManager = require('web.ActionManager');
ActionManager.include({
//--------------------------------------------------------------------------
// Private
//--------------------------------------------------------------------------
/**
* @override
* @private
*/
_executeWindowAction: function (action) {
if (action.res_model === 'board.board' && action.view_mode === 'form') {
action.target = 'inline';
_.extend(action.flags, {
hasActionMenus: false,
hasSearchView: false,
headless: true,
});
}
return this._super.apply(this, arguments);
},
});
});
|