[REF] qweb: rename loadTemplates into addTemplates

This commit is contained in:
Géry Debongnie
2019-05-15 10:55:39 +02:00
parent 04eb720619
commit 9556696fa8
4 changed files with 69 additions and 21 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ class App extends owl.Component {
var error = false;
const sanitizedXML = this.state.xml.replace(/<!--[\s\S]*?-->/g, "");
try {
qweb.loadTemplates(sanitizedXML);
qweb.addTemplates(sanitizedXML);
} catch (e) {
error = e;
}