From ebfd6d4ac26db91a690d48e66ab05dd4373fdb8c Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Wed, 9 Sep 2020 15:31:16 +0000 Subject: [PATCH] [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#57383 X-original-commit: 1be2806045a6d92416a63364391e035ed36589f0 Signed-off-by: Victor Feyens (vfe) --- doc/reference/actions.rst | 7 +++---- 1 file 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