From 4eb09d95f2ca232ce84abd07efeefa3a2c48de5b Mon Sep 17 00:00:00 2001 From: poma-odoo <94347551+poma-odoo@users.noreply.github.com> Date: Fri, 25 Mar 2022 15:41:59 +0000 Subject: [PATCH] [IMP] developer/views: `add` and `remove` tags for position=attributes The tags`add`, `remove` and `separator` are not included in the documentation. closes odoo/documentation#1741 Signed-off-by: Antoine Vandevenne (anv) Co-authored-by: Antoine Vandevenne (anv) --- content/developer/reference/backend/views.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/developer/reference/backend/views.rst b/content/developer/reference/backend/views.rst index 258b714a0..59d146ba2 100644 --- a/content/developer/reference/backend/views.rst +++ b/content/developer/reference/backend/views.rst @@ -297,6 +297,10 @@ how the matched node should be altered: * if the ``attribute`` element has no body, the attribute named after its ``name`` is removed from the matched node. If no such attribute exists, an error is raised + * if the ``attribute`` element has an ``add`` attribute, a ``remove`` attribute, or both, the + value of the matched node's attribute named after ``name`` is recomputed to include the + value(s) of ``add`` (separated by ``separator``) and delete the value(s) of ``remove`` + (separated by ``separator``). If ``separator`` is not provided, ``,`` is used instead. .. code-block:: xml @@ -305,6 +309,7 @@ how the matched node should be altered: {'invisible': [('sale_ok', '=', False)], 'readonly': [('editable', '=', False)]} + ``move``