3d39b57f60b3d071a11811523ce62c94280ee40d
Issue: In project profitability, `account.move.line` from invoices without the corresponding sales order with negative amounts where not taking into account for the computation of the profit margins. Steps to reproduce: - Install Sales, Accounting, Project, Inventory - Create 3 products: - 1 service (S1), fixed price, creates project on confirm - 1 service (S2), fixed price, creates nothing - 1 storable (P), a lot of quantity on hand, invoiced when delivered - Create an SO with SOL: - S1 with price 0 (1 qty) - S2 with price -320 (1 qty) - P with price 320 (1 qty) - Confirm SO, deliver P, create invoice - Confirm invoice > Duplicate > confirm - Go to the proj.profitability of the SO, notice that the negative lines were not taken into account, leading to the addition of the "Other Revenues" section with a positive 320 margin. Cause: The domain for the `account.move.line` was excluding lines whos subtotal was not > 0. Fix: Change that domain leaf to be != 0. Affected versions: 16.0 up to master Reference: opw-3389670 closes odoo/odoo#133597 X-original-commit: fc327869651158aee2ca01760606a36a464fa7b6 Signed-off-by: Piryns Victor (pivi) <pivi@odoo.com> Signed-off-by: Xavier Bol (xbo) <xbo@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%