c539a9b214b1dbc93d3060e31e5b2f113dad43ff
When you have some order lines linked to a registration that have a 'product_uom_qty' equals to 0, you get a division by 0 error when you try to get the 'sale_price' and the 'sale_price_untaxed'. To avoid such issue, we are now checking if the 'product_uom_qty' is not equals to 0 to avoid a division by 0. In the case it is equal to 0, we consider that the 'sale_price' and 'sale_price_untaxed' are equal to 0 as nothing has been paid for this registration. To reproduce you can do like this: - create invite someone to your event - create a SO with qty 1 and the price - validate the SO and select the registration - set product_uom_qty to 0 in the SO - open the event dashboard (and remove the filter to get your event) closes odoo/odoo#108653 X-original-commit: f0e8d30ac425241f42cbf7412b072502696d09c2 Signed-off-by: Masereel Pierre <pim@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%