From 70b69857e9e707f2cee721731758d280649db537 Mon Sep 17 00:00:00 2001 From: Mathieu Duckerts-Antoine Date: Wed, 17 May 2023 09:01:36 +0000 Subject: [PATCH] [IMP] abstract actions: adapt code after some legacy code removal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/documentation#3722 Signed-off-by: Géry Debongnie --- .../reference/frontend/javascript_reference.rst | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/content/developer/reference/frontend/javascript_reference.rst b/content/developer/reference/frontend/javascript_reference.rst index 685aa425b..b941345e8 100644 --- a/content/developer/reference/frontend/javascript_reference.rst +++ b/content/developer/reference/frontend/javascript_reference.rst @@ -2161,22 +2161,9 @@ do that, several steps should be done. var MyClientAction = AbstractAction.extend({ hasControlPanel: true, - loadControlPanel: true, // default: false ... }); - .. warning:: - When the ``loadControlPanel`` is set to true, the client action will automatically get the content of a search view or a control panel view. - In this case, a model name should be specified like this: - - .. code-block:: javascript - - init: function (parent, action, options) { - ... - this.controlPanelParams.modelName = 'model.name'; - ... - } - - Call the method *updateControlPanel* whenever we need to update the control panel. For example: