odoo/odoo#234108

Created by fw-bot
Merged at 41aa38ea59309c0b562a61ab61eecde0daaa032f

Statuses:

label
odoo-dev:17.0-16.0-opw-4633121-uneditable_timesheet_entry_in_reversed_invoice-soty-423173-fw
head
d0320e30d39a811559fcc3e218a74d8b5f516fd5
merged
9 months ago by Fun Services, Xavier Bol (xbo)
odoo/odoo
16.0 #201921
17.0 #234108
18.0 #236576
saas-18.2 #236601
saas-18.3 #237179
saas-18.4 #237202
19.0 #237216
saas-19.1
saas-19.2
saas-19.3
saas-19.4
master #237225

[FIX] sale_timesheet: make timesheet entries editable in reversed invoice

Issue:
Timesheet entries linked to reversed invoices are uneditable.

Steps to reproduce:
- Create a service product invoiced by timesheets, and create a project & task.
- In Sales, create a new quotation with the product.
- Confirm the quotation, click on the task, and create a timesheet entry.
- Create an invoice from the quotation.
- Confirm the invoice, add a credit note, and reverse the invoice.
- Go to the reversed invoice and access the timesheet through recorded hours.

the timesheet entry is uneditable, even though the invoice is reversed.

opw-4633121

Forward-Port-Of: #201921