-
- Downloads
[FIX] sale_timesheet: fix multiple issues in project profitability
This commit fixes multiple issues in project profitability report. Steps to reproduce opw-2596224: - Go to sale - Make a RFQ for a service product with service_policy set at delivered_timesheet (Timesheets on tasks), set quantity as 10 - Confirm order and create two invoices for 15%, confirm the two invoices - Create a credit note for one of the invoice and confirm it - Go back to the Sale Order and click on Project Overview => Inconsistencies (Downpayment reported twice) - Add an expense => Inconsistencies in expense amount untaxed invoiced - Add timesheets - Create an invoice from the SOL => Inconsistencies in Other costs, counting the downpayment. This issue is fixed by : - Excluding downpayments which are linked to a reversed invoice line - Use expense amount to invoice and expense amount invoiced separetely in the project overview. - Do not report not invoiced SOLs in the expense amount invoiced. - Exclude negative amounts in analytic account which are linked to credit notes. - Include all services and not timesheetes SOLs linked to project, project task or project's analytic account in the invoice/invoiced subquery. - Remove the unused downpayment column in the subqueries - Remove unused subquery (relative to downpayment) PR : #78230 opw-2596224 opw-2631163 X-original-commit: d0bce5403ef0876640022fea8951ff75ba7eb2ed X-original-commit: 92a80d0f25652448f3cf445edea563f56370613a Part-of: odoo/odoo#78523
Showing
- addons/sale_timesheet/report/project_profitability_report_analysis.py 100 additions, 99 deletions...timesheet/report/project_profitability_report_analysis.py
- addons/sale_timesheet/tests/__init__.py 1 addition, 0 deletionsaddons/sale_timesheet/tests/__init__.py
- addons/sale_timesheet/tests/common_reporting.py 110 additions, 0 deletionsaddons/sale_timesheet/tests/common_reporting.py
- addons/sale_timesheet/tests/test_reporting.py 207 additions, 105 deletionsaddons/sale_timesheet/tests/test_reporting.py
This diff is collapsed.
Please register or sign in to comment