[FIX] QWeb: purge compiled template when template is added
authorFabien Meghazi <fme@openerp.com>
Thu, 6 Dec 2012 13:21:15 +0000 (14:21 +0100)
committerFabien Meghazi <fme@openerp.com>
Thu, 6 Dec 2012 13:21:15 +0000 (14:21 +0100)
bzr revid: fme@openerp.com-20121206132115-6fyedomrrchrxc43

addons/web/static/lib/qweb/qweb2.js

index 5c07611..0aa2aab 100644 (file)
@@ -228,6 +228,7 @@ QWeb2.Engine = (function() {
                     }
                     if (name) {
                         this.templates[name] = node;
+                        this.compiled_templates[name] = null;
                     } else if (extend) {
                         delete(this.compiled_templates[extend]);
                         if (this.extend_templates[extend]) {