odoo/odoo#237202

Created by fw-bot
Merged at 4419838af3374b484188c9e907b7b505a1494bb1

Statuses:

label
odoo-dev:saas-18.4-16.0-opw-4633121-uneditable_timesheet_entry_in_reversed_invoice-soty-479595-fw
head
3d4c4bfcd1fbb030d4b97428fafc1a6f3922f625
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: #236601
Forward-Port-Of: #201921