Skip to content

[14.0][FIX] l10n_es_vat_book: Take into account inactive taxes #4330

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

Merged

Conversation

pedrobaeza
Copy link
Member

Backport of #4328 and #4329

If calculating VAT books from 2024 with 5% taxes right now, they are not shown, as Odoo deactivated these tax templates after they were obsolete, and the computation doesn't take into account archived records.

The context variable makes that the map lines return all the mapped templates, no matter if they are archived or not.

@Tecnativa TT57462

If calculating VAT books from 2024 with 5% taxes right now, they are not
shown, as Odoo deactivated these tax templates after they were obsolete,
and the computation doesn't take into account archived records.

The context variable makes that the map lines return all the mapped
templates, no matter if they are archived or not.

TT57462
@pedrobaeza pedrobaeza added this to the 14.0 milestone Aug 1, 2025
@pedrobaeza
Copy link
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 14.0-ocabot-merge-pr-4330-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 4bf4e12 into OCA:14.0 Aug 1, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at e201c9b. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 14.0-fix-l10n_es_vat_book-inactive_taxes branch August 1, 2025 06:49
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