[IMP] abstract actions: adapt code after some legacy code removal

closes odoo/documentation#3722

Signed-off-by: Géry Debongnie <ged@odoo.com>
This commit is contained in:
Mathieu Duckerts-Antoine 2023-05-17 09:01:36 +00:00
parent b4ebef7d20
commit 70b69857e9

View File

@ -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: