9c168420389eeb6f0a7c408dbcb4f05f345b65ab
Right now, when a turnstile error occurs, the user is displayed a CORS error, which is incorrect. This commit fixes that by displaying a more accurate error message. The fix requires the addition of a small trick which is to use the turnstile error handler system to catch and rethrow the error. It seems useless, but it is actually required as errors thrown by files coming from external domains will be set by the browser as "Script error" and stripped of any further info. So for better error handling, these few lines are worth it. The error is most likely to happen when duplicating a database as turnstile requires a specific domain name in its cloudflare settings. This improved message will hopefully help support manage better this situation. Hopefully, we can make something in the DB duplication tool to avoid the issue entirely and have this error message displayed only for "real" but rare errors. closes odoo/odoo#148016 X-original-commit: 112508dbc57bfbc3e8145bf4c8ed260e17071a91 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com> Signed-off-by: Simon Genin (ges@odoo) <ges@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%