Skip to content

[18.0][FIX] product_tax_multicompany_default - set taxes on all companies#955

Open
enriquemartin wants to merge 1 commit intoOCA:18.0from
Digital5-Odoo:18.0-fix-product_tax_multicompany_default
Open

[18.0][FIX] product_tax_multicompany_default - set taxes on all companies#955
enriquemartin wants to merge 1 commit intoOCA:18.0from
Digital5-Odoo:18.0-fix-product_tax_multicompany_default

Conversation

@enriquemartin
Copy link
Contributor

When a user who does not have access to all existing companies sets taxes for a product, it only propagates the tax to the companies to which it has access, leaving the value empty for those to which it does not have access (the _delete_product_taxes() method executes a DELETE and skips security rules).

Therefore, it is necessary to use sudo() when iterating through the companies to which the tax is to be propagated.

@OCA-git-bot
Copy link
Contributor

Hi @Shide,
some modules you are maintaining are being modified, check this out!

@metaminux
Copy link
Contributor

Egun on Enrique,

You could rebase on 18.0 to get rid of red checks...

@enriquemartin enriquemartin force-pushed the 18.0-fix-product_tax_multicompany_default branch from 5f56834 to 13e2ba1 Compare February 23, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants