add demo data in its own file

This commit is contained in:
Géry Debongnie
2019-02-06 11:13:25 +01:00
parent 78e8986ae9
commit 9299cb5df3
3 changed files with 121 additions and 103 deletions
+3
View File
@@ -81,6 +81,9 @@ async function loadTemplates(): Promise<string> {
*/
function loadMenus(): MenuInfo {
const menuItems: BaseMenuItem[] = (<any>window).odoo.menus;
if (!menuItems) {
throw new Error("Cannot find menus description");
}
const menuInfo = getMenuInfo(menuItems);
delete (<any>window).odoo.menus; // overkill?
return menuInfo;