From 997d21a67e7c634d16367bafc5ce9d7b4c4e228d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Lef=C3=A8vre?= Date: Mon, 18 May 2020 09:12:58 +0000 Subject: [IMP] web: Allow to use a custom control panel The abilty to use a custom control panel for an action seems to have been lost with 18e5416. With this commit the action config can specify a custom component to use as control panel. Usefull for o-spreadsheet integration. Task 2238915 closes odoo/odoo#52807 Signed-off-by: Vincent Schippefilt (vsc) --- addons/web/static/src/js/chrome/abstract_action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/js/chrome/abstract_action.js b/addons/web/static/src/js/chrome/abstract_action.js index b300cb22cf4..982b750ab56 100644 --- a/addons/web/static/src/js/chrome/abstract_action.js +++ b/addons/web/static/src/js/chrome/abstract_action.js @@ -130,7 +130,7 @@ var AbstractAction = Widget.extend(ActionMixin, { this._setTitle(this.controlPanelProps.title); } this.controlPanelProps.title = this.getTitle(); - this._controlPanelWrapper = new ComponentWrapper(this, ControlPanel, this.controlPanelProps); + this._controlPanelWrapper = new ComponentWrapper(this, this.config.ControlPanel, this.controlPanelProps); await this._controlPanelWrapper.mount(this.el, { position: 'first-child' }); } -- cgit v1.2.3