2b33d2113e01f14d258ffbd53a4fef611893f8ed
Previously, when calling error handlers, we would give them a new error created by the error service, as well as an `originalError` which is the error that was caught by the error service. In some cases, this error is part of an error chain, eg: errors that happen in the owl lifecycle are wrapped in an `OwlError`, so that when an error occurs in a callback passed to a lifecycle hook, the position where the hook was called to register the offending callback is part of the stack trace. In practice, most error handlers only care about the error that caused the entire error chain (the root) when deciding whether they should handle the error or not, eg: an RPCError should be handled by the rpc error handler, regardless of whether it occured in an event handler or in a component's willStart. It already reads the traceback to display on the UncaughtError provided by the error service as this traceback contains the entire error chain stack information and is annotated with source maps by the error service. This commit makes it so that the `originalError` passed to handlers is now the root of the error chain, it also sets the `cause` of the UncaughtError which is passed to handlers as the error that was caught by the error service, so that if a handler needs to inspect the error chain to know whether it can handle the error or not, it can still do that. related to OPW-3069633 closes odoo/odoo#106720 X-original-commit: dd6f103b1635868e03a7aa40eb7186861d22d377 Signed-off-by: Michaël Mattiello <mcm@odoo.com> Signed-off-by: Samuel Degueldre <sad@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%