summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhawal Limbuwala <dli@odoo.com>2017-11-09 08:46:41 +0000
committerXavier Morel <xmo@odoo.com>2019-07-18 06:59:42 +0000
commit1ae356146ccfec22f624febbae47df686393c1eb (patch)
tree81660e2f5dafe994f8a04a7de6a306f8db4ddf89
parente342f1ae848f47757d750f8f0ac63f88d866d237 (diff)
[IMP] doc: add some documentation of the attributes operation
closes odoo/odoo#20818 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
-rw-r--r--doc/reference/qweb.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/reference/qweb.rst b/doc/reference/qweb.rst
index 813866d9d0e..c1c7ec8e7c4 100644
--- a/doc/reference/qweb.rst
+++ b/doc/reference/qweb.rst
@@ -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``