-
- Downloads
[REF] web: rewrite the webclient in OWL (phase 1)
This commit is the first phase of the conversion of the web/ JS codebase to the owl framework. The impact of this commit is two-fold. First, it rewrites the framework part of web with a new system of services and registries. Services allow to execute code (e.g. do rpcs, setup things) before launching the application. They can also expose an API to be used by other parts of the application (e.g. a notification service would expose a function to display notifications). Services are often a good extension point for external modules that want to execute code at webclient startup. Registries offer another way to extend the application. They provide well designed extension points to add elements/behaviors from the outside (for instance, to add a systray item, an error handler...). Second, this commit initiates the conversion of the webclient to owl with a top-down approach, around those notions of services and registries. The root of the web application is now an owl application. Among others, the WebClient, ActionManager, Navbar, UserMenu, DebugManager, Dialogs, services (e.g. notification, ajax...) have been converted to the new framework/architecture. Legacy views and client actions are still supported (and used). They will be converted in the next months, and at some point, the support will be dropped. Co-authored-by:Aaron Bohy <aab@odoo.com> Co-authored-by:
Bruno Boi <boi@odoo.com> Co-authored-by:
Géry Debongnie <ged@odoo.com> Co-authored-by:
Samuel Degueldre <sad@odoo.com> Co-authored-by:
Mathieu Duckerts-Antoine <dam@odoo.com> Co-authored-by:
Simon Genin (ges) <ges@odoo.com> Co-authored-by:
Francois (fge) <fge@odoo.com> Co-authored-by:
Michael Mattiello (mcm) <mcm@odoo.com> Co-authored-by:
Julien Mougenot <jum@odoo.com> Co-authored-by:
Lucas Perais (lpe) <lpe@odoo.com> Co-authored-by:
Jorge Pinna Puissant <jpp@odoo.com>
Showing
- addons/web/__manifest__.py 76 additions, 69 deletionsaddons/web/__manifest__.py
- addons/web/controllers/main.py 1 addition, 1 deletionaddons/web/controllers/main.py
- addons/web/models/__init__.py 1 addition, 0 deletionsaddons/web/models/__init__.py
- addons/web/models/ir_http.py 5 additions, 1 deletionaddons/web/models/ir_http.py
- addons/web/models/ir_ui_menu.py 61 additions, 0 deletionsaddons/web/models/ir_ui_menu.py
- addons/web/static/lib/luxon/luxon.js 8296 additions, 0 deletionsaddons/web/static/lib/luxon/luxon.js
- addons/web/static/src/boot.js 132 additions, 59 deletionsaddons/web/static/src/boot.js
- addons/web/static/src/core/assets.js 246 additions, 0 deletionsaddons/web/static/src/core/assets.js
- addons/web/static/src/core/autofocus_hook.js 43 additions, 0 deletionsaddons/web/static/src/core/autofocus_hook.js
- addons/web/static/src/core/browser/browser.js 64 additions, 0 deletionsaddons/web/static/src/core/browser/browser.js
- addons/web/static/src/core/browser/cookie_service.js 59 additions, 0 deletionsaddons/web/static/src/core/browser/cookie_service.js
- addons/web/static/src/core/browser/feature_detection.js 40 additions, 0 deletionsaddons/web/static/src/core/browser/feature_detection.js
- addons/web/static/src/core/browser/router_service.js 169 additions, 0 deletionsaddons/web/static/src/core/browser/router_service.js
- addons/web/static/src/core/browser/title_service.js 38 additions, 0 deletionsaddons/web/static/src/core/browser/title_service.js
- addons/web/static/src/core/bus_hook.js 35 additions, 0 deletionsaddons/web/static/src/core/bus_hook.js
- addons/web/static/src/core/checkbox/checkbox.js 28 additions, 0 deletionsaddons/web/static/src/core/checkbox/checkbox.js
- addons/web/static/src/core/checkbox/checkbox.xml 19 additions, 0 deletionsaddons/web/static/src/core/checkbox/checkbox.xml
- addons/web/static/src/core/confirmation_dialog/confirmation_dialog.js 37 additions, 0 deletions...tatic/src/core/confirmation_dialog/confirmation_dialog.js
- addons/web/static/src/core/confirmation_dialog/confirmation_dialog.xml 18 additions, 0 deletions...atic/src/core/confirmation_dialog/confirmation_dialog.xml
- addons/web/static/src/core/context.js 23 additions, 0 deletionsaddons/web/static/src/core/context.js
Loading