58f7cbc1ef9aab564fc145b2663556f33a3c3bd4
When a user pays a donation with an empty amount value, the system passes this value as an empty string, which is leading to a type-casting error because an empty string cannot be directly converted to a numerical value like a float. Error: `ValueError: could not convert string to float: ` To handle this situation, we should use '_cast_as_int' and '_cast_as_float' methods because these methods provide try-except blocks, effectively handling these types of errors. This ensures that when an empty amount value is encountered, the system manages the error. sentry-4376573159 closes odoo/odoo#134026 X-original-commit: cae9f647b9e032aedfccc528d124acc639ecbf7f Signed-off-by: Antoine Vandevenne (anv) <anv@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%