7a951d7085120e6376d649d6800d9833b49fdc51
This commits make the computation of amount to invoice and amout already invoiced on sale order line works with invoice policy based on delivered quantities. Before this, the upselling of delivered quantities was not working: you were seeing the upsell amount in the amount to invoice (qty delivered > qty ordered). Notes: - When a product is not delivered (qty delivered = 0), its amount to invoice is zero too - Draft invoice are not take into account really; they are included at sale order price (discount on draft invoice does not impact amounts to invoice/invoiced) Also, when a SO in state 'draft' or 'cancel', its amount to invoice should be zero, but its invoiced amount should take all validated invoices into account. Finally, more correct trigger are set on the compute method, to trigger recomputation on right moment. This commit also compute the 2 amount fields as sudo, since the amount should not be dependent of access right of current user. To check those different points, this commit provide some more tests with ordered and delivered product, SO cancelling, upselling or delivery, ...
…
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%