-
- Downloads
[FIX] web, *: make crash_manager use services correctly
* = website_forum, stock Fix for: https://github.com/odoo/odoo/pull/32132 crash_manager.js was using the services while bypassing ServiceProviderMixin That means all services are duplicated, each having their own state. To fix this issue, CrashManager now extends AbstractService. Also crash_manager is now registered in serviceRegistry instead of being instanciated on the fly. The crash_manager now being a Service raise one issue with the tests: The services are not run for the tests but some tests needs the crash_manager 'unhandledrejection' listener. For that matter the services are reenable in qunit. Also the crash_manager's 'unhandledrejection' listener has to have precedence over the qunit listener as it will handle rejections wich have no reason or are not Errors. Part of: https://github.com/odoo/odoo/pull/35209
Showing
- addons/stock/static/src/js/stock_traceability_report_backend.js 1 addition, 2 deletions.../stock/static/src/js/stock_traceability_report_backend.js
- addons/web/static/src/js/chrome/action_manager_report.js 2 additions, 3 deletionsaddons/web/static/src/js/chrome/action_manager_report.js
- addons/web/static/src/js/core/misc.js 2 additions, 2 deletionsaddons/web/static/src/js/core/misc.js
- addons/web/static/src/js/fields/basic_fields.js 4 additions, 6 deletionsaddons/web/static/src/js/fields/basic_fields.js
- addons/web/static/src/js/services/crash_manager.js 26 additions, 21 deletionsaddons/web/static/src/js/services/crash_manager.js
- addons/web/static/src/js/views/pivot/pivot_controller.js 2 additions, 3 deletionsaddons/web/static/src/js/views/pivot/pivot_controller.js
- addons/web/static/src/js/widgets/data_export.js 1 addition, 2 deletionsaddons/web/static/src/js/widgets/data_export.js
- addons/web/views/webclient_templates.xml 1 addition, 19 deletionsaddons/web/views/webclient_templates.xml
- addons/website_forum/static/src/js/website_forum.js 7 additions, 5 deletionsaddons/website_forum/static/src/js/website_forum.js
Loading
Please register or sign in to comment