Skip to content

[PERF] account: Avoid OOM error when processing batch payments - #236341

Closed
fw-bot wants to merge 1 commit into
odoo:saas-18.3from
odoo-dev:saas-18.3-17.0-OOM_compute_tax_country_id-opw-5152687-auma-478100-fw
Closed

[PERF] account: Avoid OOM error when processing batch payments#236341
fw-bot wants to merge 1 commit into
odoo:saas-18.3from
odoo-dev:saas-18.3-17.0-OOM_compute_tax_country_id-opw-5152687-auma-478100-fw

Conversation

@fw-bot

@fw-bot fw-bot commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Description:

When trying to register a payment for multiple invoices, it is possible to trigger an Out Of Memory error. This is caused by the constraint _validate_taxes_country, calling the compute _compute_tax_country_id on all of the moves. To avoid that, we just retrieve the field we need rather than fetching everything.

Reference:

opw-5152687

Forward-Port-Of: #235749

Description:

When trying to register a payment for multiple invoices, it is possible
to trigger an Out Of Memory error. This is caused by the constraint
`_validate_taxes_country`, calling the compute `_compute_tax_country_id`
on all of the moves. To avoid that, we just retrieve the field we need
rather than fetching everything.

Reference:
opw-5152687

X-original-commit: c956c15
@robodoo

robodoo commented Nov 18, 2025

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Nov 18, 2025
@fw-bot

fw-bot commented Nov 18, 2025

Copy link
Copy Markdown
Contributor Author

This PR targets saas-18.3 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 Nov 24, 2025
Description:

When trying to register a payment for multiple invoices, it is possible
to trigger an Out Of Memory error. This is caused by the constraint
`_validate_taxes_country`, calling the compute `_compute_tax_country_id`
on all of the moves. To avoid that, we just retrieve the field we need
rather than fetching everything.

Reference:
opw-5152687

closes #236341

X-original-commit: c956c15
Signed-off-by: Hugo Poncelet (hupo) <hupo@odoo.com>
Signed-off-by: Aurélien Marie (auma) <auma@odoo.com>
@robodoo robodoo closed this Nov 24, 2025
@fw-bot
fw-bot deleted the saas-18.3-17.0-OOM_compute_tax_country_id-opw-5152687-auma-478100-fw branch December 1, 2025 13:23
auma-odoo added a commit to odoo-dev/odoo that referenced this pull request Aug 20, 2026
Description:

When trying to register a payment for multiple invoices, it is possible
to trigger an Out Of Memory error. This is caused by the constraint
`_validate_taxes_country`, calling the compute `_compute_tax_country_id`
on all of the moves. To avoid that, we just retrieve the field we need
rather than fetching everything.

Reference:
opw-5152687

closes odoo#236341

X-original-commit: c956c15
Signed-off-by: Hugo Poncelet (hupo) <hupo@odoo.com>
Signed-off-by: Aurélien Marie (auma) <auma@odoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants