Skip to content

[18.0][MIG] account_invoice_same_accounting_date_prorate: Migration to 18.0#867

Open
deeniiz wants to merge 5 commits into18.0from
18.0-mig-account_invoice_same_accounting_date_prorate
Open

[18.0][MIG] account_invoice_same_accounting_date_prorate: Migration to 18.0#867
deeniiz wants to merge 5 commits into18.0from
18.0-mig-account_invoice_same_accounting_date_prorate

Conversation

@deeniiz
Copy link
Copy Markdown
Collaborator

@deeniiz deeniiz commented Mar 24, 2026

No description provided.

eantones and others added 5 commits March 4, 2026 15:54
…ke the module account_invoice_same_accounting_date compatible with the prorate
…e_invoice_date

Override _onchange_invoice_date via super instead of adding a separate
onchange handler. This guarantees execution order: core runs first
(setting the correct date and recomputing currency), then prorate
recomputes taxes if needed. The previous separate onchange had no
guaranteed execution order relative to the core handler.

Also add a guard to only run the full tax recomputation when the
invoice has taxes with prorate=True. Previously this ran unconditionally
on every invoice.
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.

2 participants