32: MenuService — menu data model, tree builder, and app/section state #33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Build the menu data model and service layer that feeds menu data to the NavBar (AppMenu, SectionMenu, Breadcrumbs) and Sidebar. Models Odoo's menu service architecture.
Data Model
Service API
Events
Responsibilities
Depends On
/web/webclient/load_menus)SelectMenuto trigger navigation)References
Odoo's menu_service.js:
menusDataobject keyed by menu IDgetApps()= root.children.map(getMenu)getMenuAsTree()recursively builds childrenTree by mapping child IDsselectMenu()triggers action + sets current appMENUS:APP-CHANGEDbus event for reactive UI updates