Skip to content

[16.0][FIX] l10n_es_vat_book: Take into account inactive taxes #4328

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

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

@pedrobaeza pedrobaeza added this to the 16.0 milestone Jul 31, 2025
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 force-pushed the 16.0-fix-l10n_es_vat_book-inactive_taxes branch from 63b348c to 1f6534b Compare July 31, 2025 18:07
@pedrobaeza
Copy link
Member Author

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-4328-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit dbcb4f3 into OCA:16.0 Jul 31, 2025
7 checks passed
@pedrobaeza pedrobaeza deleted the 16.0-fix-l10n_es_vat_book-inactive_taxes branch July 31, 2025 18:49
pedrobaeza added a commit to Tecnativa/l10n-spain that referenced this pull request Aug 1, 2025
Followup of OCA#4328, for assuring in newer versions that there's no
problem with inactive taxes.
pedrobaeza added a commit to Tecnativa/l10n-spain that referenced this pull request Aug 1, 2025
Followup of OCA#4328, for assuring in newer versions that there's no
problem with inactive taxes.
pedrobaeza added a commit to Tecnativa/l10n-spain that referenced this pull request Aug 1, 2025
Followup of OCA#4328, for assuring in newer versions that there's no
problem with inactive taxes.
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