[IMP] component: get env from constructor

closes #430
This commit is contained in:
Aaron Bohy
2019-10-31 13:31:10 +01:00
committed by Géry Debongnie
parent 8fbf2172c5
commit 05a678c039
14 changed files with 48 additions and 47 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ App.components = { Message };
//------------------------------------------------------------------------------
async function start() {
const templates = await owl.utils.loadFile("templates.xml");
owl.config.env = {
App.env = {
qweb: new owl.QWeb({ templates })
};
const app = new App();