Skip to content
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

[18.0][MIG] l10n_es_account_asset #3992

Open
wants to merge 54 commits into
base: 18.0
Choose a base branch
from

Conversation

sergioM-S73
Copy link

@sergioM-S73 sergioM-S73 commented Feb 4, 2025

anajuaristi and others added 30 commits January 30, 2025 15:20
…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 24 commits January 30, 2025 15:20
* 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/
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/
@sergioM-S73 sergioM-S73 changed the title 18.0 mig l10n es account asset [18.0][MIG] l10n_es_account_asset Feb 4, 2025
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.