Skip to content
Snippets Groups Projects
Commit a391ea82 authored by Audric Onockx (auon)'s avatar Audric Onockx (auon)
Browse files

[FIX] sale_timesheet : unlink timesheet from invoice when deleting


invoice line

Steps:
- Create 2 service products with "Invoicing based on timesheet" & " Create a task in sales order's project"
- Create a SO with both products > confirm
- Add hours to both tasks
- Create invoice > remove one invoice line > Save

Issue:
- The removed invoice line is still appearing in the Timesheet stat button

Cause:
- account_analytic_line.timesheet_invoice_id is set to the invoice when the invoice is created
- It is not reset to False when the line is removed from the invoice

Fix:
- Reset it to False when the move the line is removed from invoice

opw-2668814

closes odoo/odoo#81145

Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
parent 5971fd13
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment