Skip to content

[16][IMP] Add ecotax only if it match shipping address country #501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: 16.0
Choose a base branch
from

Conversation

florian-dacosta
Copy link
Contributor

No description provided.

@OCA-git-bot
Copy link
Contributor

Hi @mourad-ehm,
some modules you are maintaining are being modified, check this out!

Copy link

@PaulGoubert PaulGoubert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@florian-dacosta florian-dacosta force-pushed the 16-ecotax-product-country branch from c235464 to 1bf77bf Compare August 1, 2025 14:09
computing the product ecotax passing partner country in context does not work well because sometimes we cant have the country passed. For example in account.move.line._compute_totals, sometimes we do not have the context and  the tax is wrongly computed because of an empty ecotax amount.
Refactore to set or not the ecotax tax on the sale/invoice line depending on the country. It is more limited because it means than a same product can only have classification for a same set of country, but it is more reliable.
@florian-dacosta florian-dacosta force-pushed the 16-ecotax-product-country branch from 1bf77bf to 578a321 Compare August 1, 2025 14:15
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.

4 participants