Skip to content

[19.0][MIG] l10n_es_account_asset: Migration to version 19.0 - #5124

Open
carlos-lopez-tecnativa wants to merge 53 commits into
OCA:19.0from
Tecnativa:19.0-mig-l10n_es_account_asset
Open

[19.0][MIG] l10n_es_account_asset: Migration to version 19.0#5124
carlos-lopez-tecnativa wants to merge 53 commits into
OCA:19.0from
Tecnativa:19.0-mig-l10n_es_account_asset

Conversation

@carlos-lopez-tecnativa

@carlos-lopez-tecnativa carlos-lopez-tecnativa commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

anajuaristi and others added 30 commits August 3, 2026 09:56
…s prevision tesoreria y activos/amortizaciones.
…ron marcados como no instalables mientras no se compruebe que funcionan o migren, para poder usarlos o probarlos se debería poner el atributo installable de los ficheros __openerp__.py de cada módulo a True
…hecho para aprovechar el estándar al máximo.

* Incluido nuevo método de depreciación por porcentaje fijo.
* PEP8
* Icono del módulo
* Valor por defecto para ext_method_time
* Nos traemos unas corecciones aplicadas en la versión 7.0 que no estaban en la 8.0, necesarias para hacer correctamente amortizaciones mensuales sin prorrata.
…sual ya incuidas en 7.0 + arreglado problema en la vista para la fecha de inicio de cálculo
…e + remove # depreciations compensation. Fixes OCA#146 +  Delete empty last depreciation line
…category_id (OCA#671)

Pasos para reproducir el error:

* Crear un tipo de activo
* Al crear un nuevo activo, los datos de la periodicidad configurados en el tipo de activo no se importan al nuevo activo.

Corrección:
El método a sobreescribir debe ser el "onchange_category_id_values" y no el "onchange_category_id" tal y como es actualmente.
…CA#804)

Corregido _compute_board_undone_dotation_nb para casos de prorrateo
…sset_management

As `account_asset` is now enterprise, we switch the dependency to `account_asset_management`
OCA module.

This requires a heavy refactoring on code and tests, but with some hooks and fixes provided
to OCA module, it's still very light.

Other changes:

* README by fragments
* Promote to Production/Stable
* Set maintainer
Currently translated at 100.0% (9 of 9 strings)

Translation: l10n-spain-12.0/l10n-spain-12.0-l10n_es_account_asset
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-12-0/l10n-spain-12-0-l10n_es_account_asset/es/
In some cases, the amount in annual_percentage is not synchronized with the one
in the period one due to a non hunted bug in v10/v11.

As in v12 now the important field is the annual one, we must synchronize it properly.
MiquelRForgeFlow and others added 23 commits August 3, 2026 09:56
* Not possible to remove Spanish assets

  It should be possible and there's no real reason for that limitation.

* Avoid incorrect values in annual_percentage

  When generating an asset from the invoice with other computation method, it can be
  that the method_percentage is put as 100, inversing the value for annual percentage
  as something incorrect.

  We avoid it preventing a higher value than 100.

* Avoid infinite recursion

  When creating an asset from invoice with percentage method, there's a infinite
  recursion due to the trick of changing the method type on the fly, which activates
  another board computation on the write method.

  That can be avoided passing a special context key that avoids the recomputation.

* Compute correctly number of depreciations

  The depreciation table is computed and stripped in
  _compute_depreciation_amount_per_fiscal_year, but previously the computation in that
  method was not intercepted, and so, computations was done with year method data.
…w computed writable

Since OCA/account-financial-tools#952, the onchange method for profile no longer exists,
so there's an error when changing such profile when this module is installed.

This commit fixes this and switch to new computed writable style, adding also tests
for the profile assignation for better regressions detection.

Closes OCA#1455
…tage

As it alters computations for other methods. TT25453
Currently translated at 100.0% (9 of 9 strings)

Translation: l10n-spain-14.0/l10n-spain-14.0-l10n_es_account_asset
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-14-0/l10n-spain-14-0-l10n_es_account_asset/es/
Currently translated at 100.0% (9 of 9 strings)

Translation: l10n-spain-14.0/l10n-spain-14.0-l10n_es_account_asset
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-14-0/l10n-spain-14-0-l10n_es_account_asset/ca/
- Standard procedure
- Adapt tests
- Some compute methods were not totally multi-record

TT41118
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-16.0/l10n-spain-16.0-l10n_es_account_asset
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-16-0/l10n-spain-16-0-l10n_es_account_asset/
When a tax is non deductible (because it's directly non deductible VAT,
or due to the VAT prorate), the amount to depreciate should be increased
with this non deductible amount, which was not taken into account before
this commit.

For achieving this without requiring glue modules, we are now depending
on `l10n_es_aeat`, which is a reasonable trade-off, as almost all the
instances with this module will have the other installed as well.

As we only know the deductible amount at invoice level, we get the
general tax info, and then apply the percentage corresponding to each
line.

It includes a new test for covering this case.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_account_asset
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_account_asset/
Currently translated at 100.0% (7 of 7 strings)

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_account_asset
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_account_asset/es/
Currently translated at 100.0% (7 of 7 strings)

Translation: l10n-spain-18.0/l10n-spain-18.0-l10n_es_account_asset
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-18-0/l10n-spain-18-0-l10n_es_account_asset/ca/
@HaraldPanten

Copy link
Copy Markdown
Contributor

/ocabot migration l10n_es_account_asset

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Aug 3, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Aug 3, 2026
40 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:l10n_es_account_asset Module l10n_es_account_asset series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.