diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-08-19 16:38:30 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-08-19 16:38:30 +0200 |
| commit | aac8e0c96032c16eeff293216828cbbfc6772dd1 (patch) | |
| tree | 449e2d0dcc5546c18529009cac2bfb510945a87f /doc | |
| parent | f9f288cd476f3ba95887cf1c625d3285d0a051b1 (diff) | |
| parent | 121034f79a6a4e57ed936c8672fc5f8472ca2cfd (diff) | |
[MERGE] forward port branch saas-11.3 up to 121034f79a6
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/reference/qweb.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/reference/qweb.rst b/doc/reference/qweb.rst index f4f464f7aa9..5d910d3b061 100644 --- a/doc/reference/qweb.rst +++ b/doc/reference/qweb.rst @@ -458,12 +458,16 @@ template inheritance '''''''''''''''''''' Template inheritance is used to alter existing templates in-place, e.g. to -add information to templates created by an other modules. +add information to templates created by other modules. Template inheritance is performed via the ``t-extend`` directive which takes the name of the template to alter as parameter. -The alteration is then performed with any number of ``t-jquery`` +When ``t-extend`` is combined with ``t-name`` a new template with the given name +is created. In this case the extended template is not altered, instead the +directives define how to create the new template. + +In both cases the alteration is then performed with any number of ``t-jquery`` sub-directives:: <t t-extend="base.template"> |
