Skip to content

[IMP] recurring_rental_billing: only write SO invoiced date on invoice confirm - #2902

Closed
fw-bot wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-19.0-rrb-invoice-date-trcaz-563103-fw
Closed

[IMP] recurring_rental_billing: only write SO invoiced date on invoice confirm#2902
fw-bot wants to merge 1 commit into
odoo:masterfrom
odoo-dev:master-19.0-rrb-invoice-date-trcaz-563103-fw

Conversation

@fw-bot

@fw-bot fw-bot commented Sep 1, 2026

Copy link
Copy Markdown

Before this commit, when creating a draft invoice using the custom button Consolidated Down Payment, all the invoice amount was immediately considered invoiced, even if the draft invoice was deleted, with no way of creating another one with said button.

In this commit, we add new fields and an automation on invoice confirmation to allow the creation of multiple draft invoices at the same time, deletions, etc., only considering the amount invoice when one of those invoices is confirmed by storing the invoice's date and delaying the SO's x_last_invoice date field write.

In addition, this commit changes the 'to invoice' amount computation by not considering the cancelled SOs anymore.

task-6512188

Forward-Port-Of: #2889
Forward-Port-Of: #2866

…e confirm

Before this commit, when creating a draft invoice using the custom button Consolidated Down Payment, all the invoice amount was immediately considered invoiced, even if the draft invoice was deleted, with no way of creating another one with said button.

In this commit, we add new fields and an automation on invoice confirmation to allow the creation of multiple draft invoices at the same time, deletions, etc., only considering the amount invoice when one of those invoices is confirmed by storing the invoice's date and delaying the SO's x_last_invoice date field write.

In addition, this commit also:
- changes the 'to invoice' amount computation by not considering the cancelled SOs anymore.
- adds the Consolidated Down Payment action to the partner list view.

task-6512188

X-original-commit: 86f4e11
@robodoo

robodoo commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Pull request status dashboard

@fw-bot

fw-bot commented Sep 1, 2026

Copy link
Copy Markdown
Author

@fw-bot

fw-bot commented Sep 1, 2026

Copy link
Copy Markdown
Author

@trcazier ci/industry failed on this forward-port PR

@trcazier

trcazier commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@robodoo r+

@robodoo

robodoo commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

@trcazier you may want to rebuild or fix this PR as it has failed CI.

@vava-odoo

Copy link
Copy Markdown
Collaborator

@robodoo override=ci/industry

robodoo pushed a commit that referenced this pull request Sep 3, 2026
…e confirm

Before this commit, when creating a draft invoice using the custom button Consolidated Down Payment, all the invoice amount was immediately considered invoiced, even if the draft invoice was deleted, with no way of creating another one with said button.

In this commit, we add new fields and an automation on invoice confirmation to allow the creation of multiple draft invoices at the same time, deletions, etc., only considering the amount invoice when one of those invoices is confirmed by storing the invoice's date and delaying the SO's x_last_invoice date field write.

In addition, this commit also:
- changes the 'to invoice' amount computation by not considering the cancelled SOs anymore.
- adds the Consolidated Down Payment action to the partner list view.

task-6512188

closes #2902

X-original-commit: 86f4e11
Signed-off-by: Tristan Cazier (trcaz) <trcaz@odoo.com>
@robodoo robodoo added the 19.5 label Sep 3, 2026
@robodoo robodoo closed this Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants