[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:
parent
b4ebef7d20
commit
70b69857e9
@ -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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user