418babf7af7b52ba3aef120de9be49dea9669b74
To calculate the product quantity and the average price, two UOM are used: The UOM of the product, and the UOM of the invoice line. The UOM of the product it's mandatory in the product, but the product itself it's not mandatory in the invoice. The UOM of the invoice line it's not mandatory. When either of the UOM is not filled, it gives as value NULL, and gives 'empty' as result of the calculation. Now, we use the psql function COALESCE to return '1' when one of the UOM is not filled. closes odoo/odoo#33465 Signed-off-by: Nicolas Martinelli (nim) <nim@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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%