Skip to content

Comments

11.0 mig l10n es vat prorate#91

Merged
aritzolea merged 67 commits into11.0-performancefrom
11.0-mig-l10n_es_vat_prorate
Dec 22, 2025
Merged

11.0 mig l10n es vat prorate#91
aritzolea merged 67 commits into11.0-performancefrom
11.0-mig-l10n_es_vat_prorate

Conversation

@aritzolea
Copy link

No description provided.

etobella and others added 30 commits December 4, 2025 16:21
The VAT prorate tax line should contain the analytic info from the
expense line.

With this commit, we put such information, and make sure that is
synchronized on any change.

TT41832
When doing a refund, the account of the prorate line is changed to the
tax repartition line default one (472).

That's because there's some code on the method `_reverse_move_vals`
that is checking `tax_repartition_line_id` value in the returned
dictionary for ignoring the copied value. See
https://github.com/odoo/odoo/blob/82b1e68b60eb14896666adfd3ad1f753e944d393/addons/account/models/account_move.py#L2515-L2533

What we do for tricking it (as it's atomic and can't be intercepted in
other part) is:

- When copying values, we move the `tax_repartition_line_id` into
  another field name.
- Thus, `_reverse_move_vals` is not modifying the account.
- Immediately after returning from `_reverse_move_vals`, we restored
  the field value.

TT44656
The dynamic lines management has totally changed in this version, so the
code has been rewritten mostly from scratch, but now is cleaner thanks
to the avoid of a lot of hooks.

Some JSON from tests were not correct in previous version due to
rounding, and now they are OK: 10 / 1.2 = 8.3333333, which is 8.33, not
8.34.

TT43236
Currently translated at 100.0% (24 of 24 strings)

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_vat_prorate
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_vat_prorate/es/
Currently translated at 100.0% (24 of 24 strings)

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_vat_prorate
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_vat_prorate/ca/
@aritzolea aritzolea force-pushed the 11.0-mig-l10n_es_vat_prorate branch from 27d0f93 to 647265b Compare December 15, 2025 10:38
@aritzolea aritzolea force-pushed the 11.0-mig-l10n_es_vat_prorate branch from 647265b to f7cf51b Compare December 15, 2025 14:23
@aritzolea aritzolea force-pushed the 11.0-mig-l10n_es_vat_prorate branch from cca8203 to 832d9bb Compare December 15, 2025 16:50
@aritzolea aritzolea force-pushed the 11.0-mig-l10n_es_vat_prorate branch from 832d9bb to facef4e Compare December 16, 2025 07:49
@aritzolea aritzolea force-pushed the 11.0-mig-l10n_es_vat_prorate branch 3 times, most recently from 45a2d55 to 5bee367 Compare December 16, 2025 11:58
@aritzolea aritzolea force-pushed the 11.0-mig-l10n_es_vat_prorate branch from 5bee367 to 629a3d6 Compare December 16, 2025 13:45
@aritzolea aritzolea marked this pull request as ready for review December 22, 2025 09:04
@aritzolea aritzolea merged commit 008b02d into 11.0-performance Dec 22, 2025
1 of 4 checks passed
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.