Skip to content

[IMP] account_invoice_tax: refactor tax override to use a Json field#263

Closed
fw-bot-adhoc wants to merge 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-18.0-T-52574-MAQ-4396-fw
Closed

[IMP] account_invoice_tax: refactor tax override to use a Json field#263
fw-bot-adhoc wants to merge 1 commit intoingadhoc:19.0from
adhoc-dev:19.0-18.0-T-52574-MAQ-4396-fw

Conversation

@fw-bot-adhoc
Copy link
Copy Markdown

refactor tax override to use a Json field
Replace the old relational model approach with a lightweight
tax_override_data = fields.Json(copy=False) on account.move.
The field stores manually-set amounts keyed by tax id (string) with the
structure {"<tax_id>": {"amount": float, "rate": float}}.

Overrides are only persisted for fixed-amount taxes; percentage-based
taxes are always recomputed automatically and are never stored here.

Forward-Port-Of: #261

Replace the old relational model approach with a lightweight
`tax_override_data = fields.Json(copy=False)` on `account.move`.
The field stores manually-set amounts keyed by tax id (string) with the
structure `{"<tax_id>": {"amount": float, "rate": float}}`.

Overrides are **only** persisted for fixed-amount taxes; percentage-based
taxes are always recomputed automatically and are never stored here.

X-original-commit: 5c86ecc
@roboadhoc
Copy link
Copy Markdown
Contributor

Pull request status dashboard

@fw-bot-adhoc
Copy link
Copy Markdown
Author

@maq-adhoc @rov-adhoc cherrypicking of pull request #261 failed.

stdout:

Auto-merging account_invoice_tax/__manifest__.py
CONFLICT (content): Merge conflict in account_invoice_tax/__manifest__.py
Auto-merging account_invoice_tax/wizards/account_invoice_tax.py
CONFLICT (content): Merge conflict in account_invoice_tax/wizards/account_invoice_tax.py

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

:shipit: you can use git-fw to re-do the forward-port for you locally.

⚠️ after resolving this conflict, you will need to merge it via @roboadhoc.

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

@fw-bot-adhoc
Copy link
Copy Markdown
Author

@maq-adhoc @rov-adhoc this forward port of #261 is awaiting action (not merged or closed).

1 similar comment
@fw-bot-adhoc
Copy link
Copy Markdown
Author

@maq-adhoc @rov-adhoc this forward port of #261 is awaiting action (not merged or closed).

@maq-adhoc maq-adhoc closed this Apr 15, 2026
@fw-bot-adhoc fw-bot-adhoc deleted the 19.0-18.0-T-52574-MAQ-4396-fw branch April 22, 2026 11:58
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