mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
add demo data in its own file
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user