Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] account: Remove
invoice_pdf_report_id
on reset to draft
Current Behavior: `is_move_sent` is not updated if there is an existing `invoice_pdf_report_id`. Purpose of this PR: Remove the `invoice_pdf_report_id` when resetting invoice to draft so that when the invoice is sent again (using the Send and Print wizard), `is_move_sent` is updated. Steps to Reproduce on Runbot: 1) Create and Send and Print invoice. (`is_move_sent` is set to True) 2) Reset invoice to draft. (`is_move_sent` is set to False) 3) Confirm and resend invoice using Send and Print wizard. (`is_move_sent` remains False, expected to be changed to True) Notes: This PR #116698 added a _compute in Odoo 16, however it was removed in Odoo 17 with this PR #125392 `is_move_sent` is not updated when on the second Send and Print because of the existing `invoice_pdf_report_id` (generated and linked during the first Send and Print). opw-3849109
- Loading branch information