summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2020-09-09 15:31:16 +0000
committerVictor Feyens <vfe@odoo.com>2020-09-09 17:11:09 +0000
commita6542d179fd589237631a90bd3a92e0dae530741 (patch)
tree5d02e25a31dbd6414482ec272fd5371e82ec1b0d /doc/reference
parenta204c0eb66927065611ff2999627fae9406b1877 (diff)
[FIX] doc: binding_model_id isn't mandatory on actions.
Remove this incoherent comment, and move the interesting information in the dedicated section. closes odoo/odoo#57382 X-original-commit: 1be2806045a6d92416a63364391e035ed36589f0 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/actions.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/reference/actions.rst b/doc/reference/actions.rst
index d442f61e7f4..6c425f7a45e 100644
--- a/doc/reference/actions.rst
+++ b/doc/reference/actions.rst
@@ -18,10 +18,6 @@ e.g. button methods. All actions share two mandatory attributes:
``name``
short user-readable description of the action, may be displayed in the
client's interface
-``binding_model_id``
- if set, the action is available in the action bar for the given model
-
- .. note:: For Server Actions, use ``model_id``.
A client can get actions in 4 forms:
@@ -44,6 +40,9 @@ attributes used to present an action in an arbitrary model's contextual menu:
``binding_model_id``
specifies which model the action is bound to
+
+ .. note:: For Server Actions, use ``model_id``.
+
``binding_type``
specifies the type of binding, which is mostly which contextual menu the
action will appear under