diff --git a/addons/web/static/lib/qweb/qweb-test-extend.xml b/addons/web/static/lib/qweb/qweb-test-extend.xml index dfd0ec46940..f8a24c4ef8e 100644 --- a/addons/web/static/lib/qweb/qweb-test-extend.xml +++ b/addons/web/static/lib/qweb/qweb-test-extend.xml @@ -37,7 +37,26 @@
  • [[cloned template]]
  • one
  • [[cloned template]]
  • +
    ]]>
    + + +
    Hi
    +
    + + World + + + Hello + + Hi +]]> + HiWorld +]]> + HelloWorld +]]> diff --git a/addons/web/static/lib/qweb/qweb2.js b/addons/web/static/lib/qweb/qweb2.js index 2cfd2286cbc..d2a367f1c33 100644 --- a/addons/web/static/lib/qweb/qweb2.js +++ b/addons/web/static/lib/qweb/qweb2.js @@ -268,6 +268,7 @@ QWeb2.Engine = (function() { return this.tools.exception("Can't clone undefined template " + extend); } this.templates[name] = this.templates[extend].cloneNode(true); + this.extend_templates[name] = (this.extend_templates[extend] || []).slice(); extend = name; name = undefined; }