diff options
| author | Xavier Morel <xmo@odoo.com> | 2018-05-14 15:04:19 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2019-05-27 12:00:39 +0000 |
| commit | 10f1a1a0c451a3538ac77c6c06cd26fb5898fa9c (patch) | |
| tree | a2fddfc82cf8a5f0525f877ad22c3f906981b96c /doc/reference | |
| parent | 0679d0d54269ffe0664845e8e0bd1238110fd514 (diff) | |
[REM] multi from ir.actions.act_window
Task 1843603
* src_model is redundant with binding_model_id
* multi -> binding_view_types (if empty => all views) (maybe should be
empty by default yo?)
* in convert, type => rec.get(type) but no @type possible on <act_window>...
* removed deprecated auto_refresh & auto_search (not used anywhere (?))
closes odoo/odoo#24738
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/actions.rst | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/doc/reference/actions.rst b/doc/reference/actions.rst index 904cb89db13..e247bde9e61 100644 --- a/doc/reference/actions.rst +++ b/doc/reference/actions.rst @@ -32,6 +32,29 @@ A number A dictionary treat as a client action descriptor and execute +Bindings +======== + +Aside from their two mandatory attributes, all actions also share *optional* +attributes used to present an action in an arbitrary model's contextual menu: + +``binding_model_id`` + specifies which model the action is bound to +``binding_type`` + specifies the type of binding, which is mostly which contextual menu the + action will appear under + + ``action`` (default) + Specifies that the action will appear in the :menuselection:`Action` + contextual menu of the bound model. + ``report`` + Specifies that the action will appear in the :menuselection:`Print` + contextual menu of the bound model. +``binding_view_types`` + a comma-separated list of view types for which the action appears in the + contextual menu, mostly "list" and / or "form". Defaults to ``list,form`` + (both list and form ) + .. _reference/actions/window: Window Actions (``ir.actions.act_window``) @@ -74,9 +97,6 @@ Its fields are: ``limit`` (optional) number of records to display in lists by default. Defaults to 80 in the web client -``auto_search`` (optional) - whether a search should be performed immediately after loading the default - view. Defaults to ``True`` For instance, to open customers (partner with the ``customer`` flag set) with list and form views:: @@ -136,8 +156,6 @@ The server-side composition of the ``views`` sequence is the following: .. todo:: - * ``src_model``, ``multi`` seem linked to "sidebar" actions? - * ``auto_refresh`` looks ignored/deprecated * ``usage``? * ``groups_id``? * ``filter``? |
