From 306cf16adfeab65ae16d2417256fe9e88de9b372 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 27 Feb 2019 16:41:13 +0100 Subject: [PATCH] [IMP][web_action_conditionable] readme --- .../readme/DESCRIPTION.rst | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/web_action_conditionable/readme/DESCRIPTION.rst b/web_action_conditionable/readme/DESCRIPTION.rst index 8c4852a4..18067147 100644 --- a/web_action_conditionable/readme/DESCRIPTION.rst +++ b/web_action_conditionable/readme/DESCRIPTION.rst @@ -1,5 +1,7 @@ -This module was written to extend the functionality of actions in tree views. -Odoo by default support: +This module was written to allow developers to fine tune available actions in +form and tree views. + +Odoo by default supports: :: @@ -11,10 +13,19 @@ with this module you can do: -you can use `_group_refs` to make a condition based on the user's groups: +Further, you can use `_group_refs` to make a condition based on the user's +groups: :: - +
+ +You also have access to ``_context`` for the current context. This way, you can +for example craft actions that pass a context key which decides if some of the +action buttons are shown. + +Note that for tree views, this will not work on a per record base, and the +values you have access to are the values of the form the x2many field is in. -It works in any tree view, so you can use it in One2many. +You do however have access to ``_context`` and ``_group_refs`` in for the +actions of standalone tree views.