[IMP] doc: add some documentation of the attributes operation

closes odoo/odoo#20818

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
This commit is contained in:
Dhawal Limbuwala
2019-07-18 06:59:42 +00:00
committed by Xavier Morel
parent e342f1ae84
commit 1ae356146c
+5
View File
@@ -487,6 +487,11 @@ on the extended template to select *context nodes* to which the specified
the node's body replaces the context node's children
``replace``
the node's body is used to replace the context node itself
``attributes``
the nodes's body should be any number of ``attribute`` elements,
each with a ``name`` attribute and some textual content, the named
attribute of the context node will be set to the specified value
(either replaced if it already existed or added if not)
No operation
if no ``t-operation`` is specified, the template body is interpreted as
javascript code and executed with the context node as ``this``