Skip to content

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

Closed
fw-bot wants to merge 1 commit into
odoo:saas-19.4from
odoo-dev:saas-19.4-19.0-rrb-invoice-date-trcaz-563062-fw
Closed

[IMP] recurring_rental_billing: only write SO invoiced date on invoice confirm#2900
fw-bot wants to merge 1 commit into
odoo:saas-19.4from
odoo-dev:saas-19.4-19.0-rrb-invoice-date-trcaz-563062-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

This PR targets saas-19.4 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

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 #2900

X-original-commit: 86f4e11
Signed-off-by: Tristan Cazier (trcaz) <trcaz@odoo.com>
@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.

3 participants