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

[17.0][MIG] l10n_es_aeat: Migration to 17.0 #3387

Merged
merged 173 commits into from
Mar 22, 2024

Commits on Mar 21, 2024

  1. [ADD] l10n_es_aeat, l10n_es_aeat_347, l10n_es_aeat_349: Adds a generi…

    …c module for aeat models, 347 module was portedto v6.0 and adds new module to print AEAT model 349.
    Omar (pexego) authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    ed58051 View commit details
    Browse the repository at this point in the history
  2. [IMP+FIX] l10n_es_aeat, l10n_es_aeat_mod347, l10n_es_aeat_mod349: Peq…

    …ueñas mejoras generales (vistas, traducciones, código) y corrección pequeño bug por un olvido en la adaptación de la v5 a la v6
    Jordi Esteve authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    f08737e View commit details
    Browse the repository at this point in the history
  3. [FIX] l10n_es_aeat: Fix _format_number function so number '22027.0' i…

    …s formatted correctly. With this number 'dec_part' would become 100 (instead of 0) and fail in the final assertion. Instead of providing a workaround for this case, I simply replace the formatting with '%0*.*f' which seems easier specially because it already does the appropriate rounding.
    albertca authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    0873584 View commit details
    Browse the repository at this point in the history
  4. [REF] Cambio de licencia de GPL3 a AGPL en los módulos donde sólo apa…

    …recía Pexego en la licencia, quedan los compartidos.
    Omar (pexego) authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    d822a8b View commit details
    Browse the repository at this point in the history
  5. [FIX] l10n_es_aeat_mod347,l10n_es_aeat: Añadimos los últimos cambios …

    …en la 6.0 de estos módulos
    Omar (pexego) authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    d8e0b02 View commit details
    Browse the repository at this point in the history
  6. Commit inicial de una rama para la versión 7.0. Todos los módulos fue…

    …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
    Omar (Pexego) authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    1d0990d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fcb77b5 View commit details
    Browse the repository at this point in the history
  8. [FIX] l10n_es_aeat: fix exception call (except_orm instead of orm_exc…

    …eption)
    Pedro M. Baeza authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    45bd488 View commit details
    Browse the repository at this point in the history
  9. [FIX] l10n_es_aeat: bug atthach_id

    acysos authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    5271b4b View commit details
    Browse the repository at this point in the history
  10. [FIX] msgstr in .pot files should be empty

    Alejandro Santana authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    c4398c5 View commit details
    Browse the repository at this point in the history
  11. [IMP] l10n_es_aeat: Icono para el módulo.

    - Algo de PEP8 y refactorización de código
    
    [MIG] l10n_es_aeat_mod303: Migración a v7 del módulo con las siguientes mejoras:
    - Convenciones de la comunidad.
    - PEP8 en la mayoría de código.
    - Icono para el módulo.
    - Adaptación de vistas a las posibilidades de la v7.
    - Restringidas las cuentas bancarias a las de la compañía.
    Pedro M. Baeza authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    f2922c0 View commit details
    Browse the repository at this point in the history
  12. [IMP] l10n_es_aeat: Mejorado mecanismo de herencia para reaprovechar …

    …más código.
    
    - Añadido wizard para ver el resultado de la exportación sin necesidad de tener el módulo document.
    - Puesta transición de estados sin workflow.
    - Pequeños ajustes de interfaz.
    [IMP] l10n_es_aeat_mod303: Adaptado al nuevo mecanismo. Se elimina workflow anterior mediante un script de migración.
    Pedro M. Baeza authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    e801839 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7883540 View commit details
    Browse the repository at this point in the history
  14. [FIX] l10n_es_aeat: Pequeños cambios para acomodar la funcionalidad d…

    …el 347 y el 340.
    Pedro M. Baeza authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    c6a9187 View commit details
    Browse the repository at this point in the history
  15. [IMP] l10n_es_aeat:

    * Eliminación de la mayoría de warnings que da runbot.
    * Usar librería unidecode en lugar de reemplazos manuales para las tildes y caracteres no soportados.
    Pedro M. Baeza authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    24a700f View commit details
    Browse the repository at this point in the history
  16. [MIG] Movidos todos los módulos a __unported__

    [MIG] Eliminados módulos no migrados a v7
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    6270857 View commit details
    Browse the repository at this point in the history
  17. [FIX] l10n_es_aeat: New PEP8 checks

    - Mover import de unidecode para evitar error
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    314a395 View commit details
    Browse the repository at this point in the history
  18. [IMP] l10n_es_aeat:

    * unificar campos en el módulo base + migrar a la nueva api.
    * README.rst mejorado
    * mejora de código
    * usabilidad del atributo _aeat_number
    * secuencia automatica
    * control al instanciar los modelos
    * correcciones necesarias para el correcto funcionamiento de los módulos
    agaldona authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    3f999fd View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    f48be08 View commit details
    Browse the repository at this point in the history
  20. [IMP+FIX] l10n_es_aeat_*: Cálculo por códigos de impuestos generaliza…

    …do + tratamiento residentes 216 y cálculo
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    8720327 View commit details
    Browse the repository at this point in the history
  21. [MIG] l10n_es_aeat_mod303: Modelo 303 de la AEAT totalmente refactori…

    …zado
    
    Presentación del Modelo AEAT 303
    ================================
    
    * Incluye un motor genérico para obtener los totales de códigos de impuestos
      de manera parametrizada y con posibilidad de versionado por fechas
    * Incluye un motor de parametrización de las exportaciones a formato BOE
      con posibilidad de versionado por fechas.
    * Se incluyen las parametrizaciones de ambos motores para el 303.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    0ab3ecc View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    caf221d View commit details
    Browse the repository at this point in the history
  23. [IMP] l10n_es_aeat/l10n_es_aeat_mod303: Crear asiento de regularizaci…

    …ón cuando se hace la declaración
    
    * Generador del asiento de regularización con cargo a un proveedor "Agencia
      Estatal de Administración Tributaria" creado al efecto.
    
    Configuración
    =============
    
    Para activar la creación del asiento de regularización en un modelo, hay que
    poner en el modelo correspondiente el campo allow_posting a True, y establecer
    en la configuración de impuestos los conceptos que se regularizarán con el
    flag "to_regularize".
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    c64d17e View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    543dec4 View commit details
    Browse the repository at this point in the history
  25. [IMP] l10n_es_aeat_*: Cálculo de importes de impuestos por cadena en …

    …lugar de recordset + gestionar grupos de compañías
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    09e6ecf View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    1e7b352 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    2b41fa2 View commit details
    Browse the repository at this point in the history
  28. [FIX]l10n_es_aeat_export_to_boe_button

    PR related with: OCA#236
    jcarlosmontoya authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    e5f643a View commit details
    Browse the repository at this point in the history
  29. [IMP] l10n_es_aeat_vat_prorrate: Enfoque definitivo

    ======================
    AEAT - Prorrata de IVA
    ======================
    
    Módulo para gestionar la prorrata del IVA en las declaraciones de la AEAT (por
    el momento, en el modelo 303), según el artículo 92 de la Ley 37/1992, de 28 de
    diciembre, del Impuesto sobre el Valor Añadido.
    
    Uso
    ===
    
    Realizando el modelo 303, se puede seleccionar si se desea aplicar prorrata de
    IVA.
    
    Prorrata general
    ----------------
    
    En el caso de seleccionar "Prorrata general", aparece un nuevo campo llamado
    "Porcentaje de prorrata de IVA" que puede ser rellenado a mano.
    
    Además, cuando se realice el asiento de regularización, la parte proporcional
    de la cuota no deducida se compensará como gasto.
    
    Se ha incluido un calculador del porcentaje de prorrata, utilizable en 2 casos:
    
    * Al comienzo de un nuevo ejercicio, para determinar el porcentaje provisional
      a aplicar hasta el último periodo de ese ejercicio.
    * En la última declaración del ejercicio, para determinar el porcentaje
      definitivo de prorrata, y sobre el que se compensará la diferencia.
    
    Problemas conocidos / Hoja de ruta
    ==================================
    
    * La prorrata especial de IVA no está contemplada aún.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    202711f View commit details
    Browse the repository at this point in the history
  30. [FIX] l10n_es_aeat: Default again to ' ' in positive numbers and allo…

    …w other values in export config
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    6993c6f View commit details
    Browse the repository at this point in the history
  31. [8.0][FIX] l10n_es_aeat: Corrige creación de apuntes con importe en d…

    …ebe y haber a la vez.
    Almudena authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    569bb64 View commit details
    Browse the repository at this point in the history
  32. [FIX] l10n_es_aeat_*: Mejor herencia de impuestos

    El anterior método utilizado, al tener una clase y un many2one genérico,
    no permitía poner los datos en múltiples modelos hijos, ya que se repetían
    los IDs, y cogía los datos de un modelo en otros.
    
    Con este nuevo sistema, se sigue utilizando una tabla, pero con doble
    índice: el modelo y el ID, parecido a un campo reference, pero gestionado
    por código propio en el método de cálculo.
    
    El 303 está adaptado a este nuevo sistema, y se incluye un script de
    migración que conserve los datos.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    0272e2c View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    8a0f4e3 View commit details
    Browse the repository at this point in the history
  34. [FIX] Do not use hyphen in report sequence, only numbers

    - Change field name: 'sequence' by 'name'
    - Isolate report identifier number calculation in order to be inheritable
    - Change methos name: _name_get by _report_identifier_get
    - Remove sequence constraints
    antespi authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    4bc2e60 View commit details
    Browse the repository at this point in the history
  35. [IMP] l10n_es_aeat: Don't split regularization lines for same account.

    …Closes OCA#305
    
    If some tax lines have to been regularized, and they have the same account, previous
    to this commit, they appear in separate lines. Now, all are merged in only one line
    (if the balance sign is the same).
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    fdff112 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    6caa888 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    231ce4a View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    e0c8dbe View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    05bc297 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    5da4f0d View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    784b862 View commit details
    Browse the repository at this point in the history
  42. [IMP] Add tax amount to view

    cubells authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    9ed3db9 View commit details
    Browse the repository at this point in the history
  43. [FIX] statusbar_colors not supported

    cubells authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    a1cf308 View commit details
    Browse the repository at this point in the history
  44. [IMP] l10n_es_aeat_mod111: Nuevo formato de exportación del modelo 11…

    …1 para los ejercicios 2016 y siguientes
    Gelu authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    9a5fbf6 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    1a0e9b9 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    469404c View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    3865e77 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    2056ddc View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    d818ea8 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    6ed38e7 View commit details
    Browse the repository at this point in the history
  51. [FIX] l10n_es_aeat: Include direct statement account moves with taxes

    When you fill a bank or cash statement with taxes for cancelling an expense,
    those amounts weren't included on the reports, as the move type is
    'liquidity', not 'receivable' or 'payable'. This fix includes also this type
    on the search domain.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    7c44689 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    ee444ec View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    96ac3d7 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    0de8fdf View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    440fef6 View commit details
    Browse the repository at this point in the history
  56. [IMP] l10n_es_aeat: Avoid rewrites on related fields

    ORM launches a rewrite on origin table for related fields without
    readonly flag. Preventing this marking it as readonly, we will
    gain a bit in performance or avoid write errors.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    5b52222 View commit details
    Browse the repository at this point in the history
  57. [FIX] l10n_es_aeat: Avoid multi-company error due to depends

    Debido a que se utiliza una sola tabla para almacenar las líneas
    de los impuestos de todos los modelos, hay una limitación en el ORM de Odoo
    cuando se coloca el campo one2many de dichas líneas (tax_line_ids) como
    dependencia en la definición del cálculo de un campo (entrada con
    @api.depends), que recalcula los campos calculados de todos los modelos con el
    mismo ID que el del registro en curso, lo que puede ser un problema en entornos
    multi-compañía. Una solución a ello (aunque no evita el recálculo), es poner en
    esos campos calculados `compute_sudo=True`.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    4af6e8f View commit details
    Browse the repository at this point in the history
  58. [IMP] l10n_es_aeat: Check previous declaration number on proper types

    If the declaration is complementary or substitutive, there should be
    a previous declaration number.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    ef058d2 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    a85128d View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    fcfcfb4 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    b60914b View commit details
    Browse the repository at this point in the history
  62. [FIX] l10n_es_aeat: Workaround for odoo/odoo#18438

    Due to a bug in ORM that unlinks other tables' records, we have to avoid (0, 0, x) syntax
    
    Reference: odoo/odoo#18438
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    ed88267 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    5a97505 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    e721e3a View commit details
    Browse the repository at this point in the history
  65. [IMP] l10n_es_aeat: _register_hook without warning

    Calling it with decorator @api.model_cr
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    a77ce12 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    157b1fd View commit details
    Browse the repository at this point in the history
  67. [FIX] l10n_es_aeat: ljust exige byte string de lenght 1

    agaldona authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    21492b6 View commit details
    Browse the repository at this point in the history
  68. [FIX] l10n_es_aeat: Bytestring concatenation on file export to boe (S…

    …olves compatibility problems with python3) (#1)
    
    * Adds tests for exporting files to boe with an export config (OCA#2)
    hugosantosred authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    002f258 View commit details
    Browse the repository at this point in the history
  69. [FIX] l10n_es_aeat: Add onchange_chart_template_id to TestL10nEsAeatM…

    …odBase._chart_of_accounts_create() in order to fix travis tests
    
    * remove fax, field does not exist
    hugosantosred authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    96279e8 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    197034b View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    99f6fb2 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    a7e7ee5 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    13248c1 View commit details
    Browse the repository at this point in the history
  74. [FIX+IMP] l10n_es_aeat_mod303: Fix refinements

    * No need to change test structure with create
    * Optimize code
    * Fix tests in l10n_es_vat_prorrate
    * Translations
    * Other minor things
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    ec09a64 View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    0d2fe19 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    a0dd685 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    4fd073d View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    821fff3 View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    511bf7f View commit details
    Browse the repository at this point in the history
  80. [IMP] l10n_es_aeat: Add tax_exigibility option to tax mapping

    With this, cash basis can be done in an easy way, and it's a base field
    in account module.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    86cd2a8 View commit details
    Browse the repository at this point in the history
  81. [FIX] l10n_es_aeat_mod303: Handle negative amounts in purchase refunds

    It includes tests for the new cases.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    74258a0 View commit details
    Browse the repository at this point in the history
  82. [MIG] l10n_es_aeat: Migration to 11.0

    - Standard procedure
    - Adapt views
    - Adapt tests
    - README by fragments
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    e1fc66b View commit details
    Browse the repository at this point in the history
  83. [MIG] l10n_es_aeat_mod303: Migration to 12.0

    * Standard procedure
    * Adapted tests
    * README by fragments
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    76100ed View commit details
    Browse the repository at this point in the history
  84. [FIX] l10n_es_aeat: Don't put company to AEAT partner

    So it works for multi-company environments.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    7efaa25 View commit details
    Browse the repository at this point in the history
  85. [IMP] l10n_es_aeat_mod303: Add support for 2018 4T:

    * BOE format
    * Exonerated from 390
    
      * Fields
      * Mappings
      * BOE export
    
    * README update
    * Little change in AEAT engine
    * Tests adapted + expanded
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    1837783 View commit details
    Browse the repository at this point in the history
  86. [IMP] l10n_es_aeat: Add BOE file comparer

    New feature for viewing a BOE exported file with each field properly mapped
    to their export config line for showing the values.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    e1e2b25 View commit details
    Browse the repository at this point in the history
  87. [IMP] l10n_es_aeat: Add active field to export configs

    This way, we don't initially see all the subconfigs for each model and we can concentrate
    on main export configurations. This is got through `active` field default behaviour.
    Archived config are still directly searchable through the subconfig selector in the
    configuration line.
    
    All models export configs have been adapted to this new approach.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    1ae73e5 View commit details
    Browse the repository at this point in the history
  88. [FIX+IMP] l10n_es_aeat_mod347: Migration refinements + enhancements

    * Add controller for automatic confirmation/rejection
    * Improve data model
    * Clean code
    * Clean UI
    * Spanish translation
    * Tests
    * ...
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    1ed733c View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    ae8e64d View commit details
    Browse the repository at this point in the history
  90. [FIX] l10n_es_aeat: Create sequences when new company is created

    When a new company is created, its sequences are not populated, so an Odoo service
    restart is needed for being able to use AEAT models. With this, you don't need
    this restart.
    
    It includes a test with a hack for populating a model in the test itself for testing
    complete flow.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    307b129 View commit details
    Browse the repository at this point in the history
  91. [FIX] l10n_es_aeat: Depends on l10n_es

    This dependency is not strictly needed by the module, but the test base for other
    modules needs the module, so let's put it explicitly
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    429fd32 View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    51b1318 View commit details
    Browse the repository at this point in the history
  93. [FIX] l10n_es_aeat: Remove " from BOE files

    It's not accepted by AEAT.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    69a96bc View commit details
    Browse the repository at this point in the history
  94. [FIX] l10n_es_aeat_mod347: Proper variable assignation

    So that inherited models are able to access this value.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    7bf7e62 View commit details
    Browse the repository at this point in the history
  95. [IMP] l10n_es_aeat: Add chatter + activities to AEAT models

    * Include chatter (mail.thread)
    * Include activities (mail.activity.mixin)
    * Track AEAT report state change
    * Include new admin user in AEAT group by default
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    49e74b1 View commit details
    Browse the repository at this point in the history
  96. Translated using Weblate (Spanish)

    Currently translated at 100.0% (228 of 228 strings)
    
    Translation: l10n-spain-12.0/l10n-spain-12.0-l10n_es_aeat
    Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-12-0/l10n-spain-12-0-l10n_es_aeat/es/
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    53f301c View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    14fefcc View commit details
    Browse the repository at this point in the history
  98. Configuration menu
    Copy the full SHA
    9abd6ca View commit details
    Browse the repository at this point in the history
  99. Configuration menu
    Copy the full SHA
    c9d2686 View commit details
    Browse the repository at this point in the history
  100. [ADD] l10n_es_aeat: certificates and soap. AEAT Partner check

    [ADD] l10n_es_aeat: certificates and soap. AEAT Partner check
    
    [ADD] l10n_es_aeat: certificates and soap. AEAT Partner check
    
    [ADD] l10n_es_aeat: certificates and soap. AEAT Partner check
    
    [ADD] l10n_es_aeat: certificates and soap. AEAT Partner check
    acysos authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    76e7343 View commit details
    Browse the repository at this point in the history
  101. [UPD] Revert obsolete workaround

    It was solved in v9 (see odoo/odoo@9ae7832).
    MiquelRForgeFlow authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    1761766 View commit details
    Browse the repository at this point in the history
  102. Configuration menu
    Copy the full SHA
    ec4f168 View commit details
    Browse the repository at this point in the history
  103. Configuration menu
    Copy the full SHA
    766c4dc View commit details
    Browse the repository at this point in the history
  104. Configuration menu
    Copy the full SHA
    f8d6ec3 View commit details
    Browse the repository at this point in the history
  105. [IMP+FIX] l10n_es_aeat: Move get taxes method to company + cleaning i…

    …n tests
    
    This way, we can reuse it in other modules that don't inherit AEAT report like SII.
    
    We also clean a non needed reading of the tax description field.
    
    Tests were still using description method for populating data, so we switch to new
    system and perform needed changes in dependent tests.
    
    s
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    dd97913 View commit details
    Browse the repository at this point in the history
  106. Configuration menu
    Copy the full SHA
    9a3983f View commit details
    Browse the repository at this point in the history
  107. Configuration menu
    Copy the full SHA
    c3ccc9c View commit details
    Browse the repository at this point in the history
  108. [FIX] l10n_es_aeat: Avoid permission error posting invoice

    Due to a weird chained operations, posting the invoice with billing user
    permissions leads to an AccessError trying to read `l10n.es.aeat.mod303.report`.
    
    And even more, this only happens on first test execution during install. Consecutive
    test executions don't fail.
    
    Possible reasons for this are:
    
    - Registry state in SavepointCase in setUpClass
    - New ORM API malfunction
    
    Anyway, as doing this on UI or successive test executions don't fail, let's use
    the shortcut of doing the post with sudo for avoiding the problem.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    5aad968 View commit details
    Browse the repository at this point in the history
  109. Configuration menu
    Copy the full SHA
    8af7a4f View commit details
    Browse the repository at this point in the history
  110. [MIG+IMP] l10n_es_aeat_sii: Complete migration

    - Redo the tax computation for efficiency and reliability
    - Add test suite for checking obtained JSON for different tax configurations
    - SII description computation reworked for new computed writable
    - Added migration scripts
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    7045f43 View commit details
    Browse the repository at this point in the history
  111. [FIX] l10n_es_aeat: Incorrect translation

    It was provoking an invalid extension in Windows.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    0c7ae9f View commit details
    Browse the repository at this point in the history
  112. Configuration menu
    Copy the full SHA
    21a966f View commit details
    Browse the repository at this point in the history
  113. [MIG] l10n_es_aeat: Migration to 14.0

    ozono authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    6a3fdee View commit details
    Browse the repository at this point in the history
  114. [IMP] l10n_es_aeat: Set some base data for other modules

    - Being sure company is created with EUR
    - Setting a resilient environment for USD
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    e671631 View commit details
    Browse the repository at this point in the history
  115. [FIX] l10n_es_aeat: Allow to unlink regularization move when cancelling

    From this version, there's no more "Allow cancelling entries" option
    in journals to choose from, so we should force the removal of the entry
    in these cases.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    ff21090 View commit details
    Browse the repository at this point in the history
  116. Configuration menu
    Copy the full SHA
    35bbb7b View commit details
    Browse the repository at this point in the history
  117. [REF+IMP] l10n_es_aeat/l10n_es_aeat_sii_oca: Re-arrange certificate t…

    …ests
    
    - Put minimal certificate test in l10n_es_aeat
    - Remove deprecation warning due to use of password as str.
    - Extend properly tests in l10n_es_aeat_sii_oca for the SII part.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    0613c17 View commit details
    Browse the repository at this point in the history
  118. [FIX] l10n_es_aeat: Don't force journal on refunds

    Due to a newly introduce check, journal type must be compatible, so we
    can't put in a misc journal any refund, but it's not needed to force it,
    as reverse code handle this.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    ff0aeb0 View commit details
    Browse the repository at this point in the history
  119. [FIX]l10n_es_aeat: the ._origin field is added to the search for acco…

    …unts and taxes templates to make it compatible with objects of type NewID.
    ValentinVinagre authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    5e2cdfa View commit details
    Browse the repository at this point in the history
  120. [FIX] l10n_es_aeat: Don't screw VAT check

    Since odoo/odoo#68474, the tests are failing
    as Odoo is not able to recognize the country for VAT check. We do the
    writing for both values at the same time for avoiding the problem.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    56ebb11 View commit details
    Browse the repository at this point in the history
  121. [OU-ADD + IMP] l10n_es_aeat: Include record rule migration script + a…

    …djust rule
    
    It includes the migration scripts for the module.
    
    As the field is required, no need to check for empty company in the record rule.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    b724d49 View commit details
    Browse the repository at this point in the history
  122. Configuration menu
    Copy the full SHA
    a270afa View commit details
    Browse the repository at this point in the history
  123. Configuration menu
    Copy the full SHA
    1d3e46d View commit details
    Browse the repository at this point in the history
  124. [FIX] l10n_es_aeat: Non stored + archive ribbon

    - Always assign value to non stored computed field
    - Put archived ribbon ala v13 style
    - Adopt it as maintainer
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    2da341b View commit details
    Browse the repository at this point in the history
  125. Configuration menu
    Copy the full SHA
    68c2207 View commit details
    Browse the repository at this point in the history
  126. [MIG+IMP] l10n_es_aeat_mod303_oss: Migration to 13.0 + tests

    - Standard procedure.
    - Add tests for full coverage.
    - Fix compatibility with `l10n_es_aeat_vat_prorrate` due to a problem
      with ormcache and virtual records.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    f001860 View commit details
    Browse the repository at this point in the history
  127. Configuration menu
    Copy the full SHA
    f11460c View commit details
    Browse the repository at this point in the history
  128. Configuration menu
    Copy the full SHA
    be9a748 View commit details
    Browse the repository at this point in the history
  129. Configuration menu
    Copy the full SHA
    883b6d2 View commit details
    Browse the repository at this point in the history
  130. [FIX] l10n_es_aeat: Added group group_erp_manager in the Account mana…

    …ger user for testing.
    ValentinVinagre authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    55a2f7b View commit details
    Browse the repository at this point in the history
  131. Configuration menu
    Copy the full SHA
    756c06b View commit details
    Browse the repository at this point in the history
  132. Configuration menu
    Copy the full SHA
    55ee9f5 View commit details
    Browse the repository at this point in the history
  133. [FIX] l10n_es_aeat: Proper position for anonymous check

    We have a page for this info, and the previous place was breaking the
    layout of such part.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    cd8c27c View commit details
    Browse the repository at this point in the history
  134. [IMP] l10n_es_aeat: Use dynamic parent for AEAT reports

    As enterprise module `account_accountant` is using another root menu,
    and other kind of hacks are not desirable, making a dynamic search over
    the parent of another well know menu (Customers - menu_finance_receivables),
    makes the trick for having the menu correctly placed in both editions.
    
    Thanks to Martin Trigaux for suggesting this solution.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    ad08d4a View commit details
    Browse the repository at this point in the history
  135. [FIX] black formatting

    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    62b7739 View commit details
    Browse the repository at this point in the history
  136. [IMP] l10n_es_aeat: allow to define the identification type

    Co-authored-by: Ethan Hildick <[email protected]>
    2 people authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    ea0d603 View commit details
    Browse the repository at this point in the history
  137. [FIX] l10n_es_aeat: Proper country code for Greece and old French col…

    …onies
    
    When we have a Greek VAT number (ELXXXXXXXXX), `_parse_aeat_vat_info`
    was incorrectly returning `GR, XXXXXXXXX, 02`. For AEAT, the country
    code is always the original one [1], not the official ISO one.
    
    We only need the ISO one for checking the inclusion in the European
    union.
    
    Thus, we make the mapping only for this inclusion check.
    
    [1] https://sede.agenciatributaria.gob.es/static_files/Sede/Disenyo_registro/DR_300_399/archivos_20/DR_Anexo_349.pdf
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    8264a3a View commit details
    Browse the repository at this point in the history
  138. [FIX] l10n_es_aeat: Modify tests according country_code change

    Followup of b4fe6bf, as tests were
    testing the exact incorrect behavior without context.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    8d85369 View commit details
    Browse the repository at this point in the history
  139. Configuration menu
    Copy the full SHA
    31ad517 View commit details
    Browse the repository at this point in the history
  140. Configuration menu
    Copy the full SHA
    73ccf39 View commit details
    Browse the repository at this point in the history
  141. Configuration menu
    Copy the full SHA
    9940bdc View commit details
    Browse the repository at this point in the history
  142. Configuration menu
    Copy the full SHA
    f54b1bd View commit details
    Browse the repository at this point in the history
  143. Configuration menu
    Copy the full SHA
    2f6cc88 View commit details
    Browse the repository at this point in the history
  144. [FIX] l10n_es_aeat: Consider correctly French overseas

    For French overseas territories
    (https://en.wikipedia.org/wiki/Overseas_France), there are no
    intracommunity fiscal rules, but the country code that AEAT requires
    should be FR, as it can be seen here:
    
    https://sede.agenciatributaria.gob.es/Sede/todas-gestiones/impuestos-tasas/declaraciones-informativas/modelo-347-decla_____racion-anual-operaciones-personas_/instrucciones/codigos-paises-territorios.html
    
    Thus, we need to call the mapping function differently if you want to
    convert `EL` to `GR` for getting the European countries than to pass
    the proper country code.
    
    This is done adding an extra parameter for saying if we want to include
    such replacements, and only being executed when the check about European
    country is rejected, on contrary than with Greece (EL), that should be
    included as intracommunity.
    
    The country code is now also obtained from the vat itself if the first
    2 letter belongs to any country code.
    
    TT38835
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    c168364 View commit details
    Browse the repository at this point in the history
  145. [FIX] l10n_es_aeat: specify cryptography version

    This module requires the specified cryptography version. Make that explicit in its manifest, now that thanks to odoo/odoo#25549 we can specify the package version.
    
    @moduon MT-1067
    yajo authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    f460397 View commit details
    Browse the repository at this point in the history
  146. Configuration menu
    Copy the full SHA
    9e5bde8 View commit details
    Browse the repository at this point in the history
  147. Configuration menu
    Copy the full SHA
    bea8443 View commit details
    Browse the repository at this point in the history
  148. [IMP] l10n_es_aeat: Add standard function for getting taxes

    New hook for managing changes on the function
    New field for tax_amount
    etobella authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    4689547 View commit details
    Browse the repository at this point in the history
  149. [IMP] l10n_es_aeat: Hook for deprecated method

    - Enables backwards compatibility and warns the user, to be removed in future migrations
    hildickethan authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    c1bdc5f View commit details
    Browse the repository at this point in the history
  150. [IMP] l10n_es_aeat: Improve install time

    this commit : OCA@2dc5f549f91bda2f97f8b39624c1ea137ec18042~
    introduces thirdparty_invoice as a compute store true on account_move table
    on large database, the initial compute is too long
    I created a hook and a migrate in order to fill it
    xavier-bouquiaux authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    b980dee View commit details
    Browse the repository at this point in the history
  151. Configuration menu
    Copy the full SHA
    6e91ed9 View commit details
    Browse the repository at this point in the history
  152. Configuration menu
    Copy the full SHA
    3f1ac1f View commit details
    Browse the repository at this point in the history
  153. Configuration menu
    Copy the full SHA
    b76b85a View commit details
    Browse the repository at this point in the history
  154. Configuration menu
    Copy the full SHA
    64ba526 View commit details
    Browse the repository at this point in the history
  155. [FIX] l10n_es_aeat: add invisible company_id field in view

    Without this field, the update of the 303 addon, throws an error
    with the counterpart_account_id field that use the company_id in the
    domain
    hugosantosred authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    46f21a6 View commit details
    Browse the repository at this point in the history
  156. [FIX] l10n_es_aeat: Proper interval overlap checking in tax map

    It includes unit tests.
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    73cc823 View commit details
    Browse the repository at this point in the history
  157. [IMP] l10n_es_aeat: SavePointCase > TransactionCase + Warning > UserE…

    …rror
    
    warnings.warn("Warning is a deprecated alias to UserError.", DeprecationWarning)
    victoralmau authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    fe615be View commit details
    Browse the repository at this point in the history
  158. [FIX] l10n_es_aeat: No ir.model forbidden access

    This model access is restricted to administrator, so we:
    
    - sudo operations that require to access it.
    - remove an auxiliary field computing it that is not used.
    
    Fixes OCA#3016
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    d433a80 View commit details
    Browse the repository at this point in the history
  159. [FIX] l10n_es_aeat: replace deprecated method.

    - remove deprecated flush() method.
    - replace deprecated invalidate_cache() method with env.invalidate_all().
    RodrigoBM authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    6731d6e View commit details
    Browse the repository at this point in the history
  160. Configuration menu
    Copy the full SHA
    f24ea7c View commit details
    Browse the repository at this point in the history
  161. [FIX] l10n_es_aeat: Consider financial_type="other" as regular operat…

    …ions
    
    Steps to reproduce the problem:
    
    - PoS installed.
    - Have a session with only payment methods with outstanding accounts (no cash payments received).
    - Close and post session.
    - The resulting journal entry is of type = "Other".
    
    Such entries, even if having taxes, won't be included in the AEAT 303 model,
    as the type = "Other" is not considered till now. That's because it can't
    be deduced if the operation is regular or not.
    
    Let's assume that such operations are always regular (as 99.9% of the times will be),
    for not having differences in the amounts of the report vs balances in the tax.
    
    TT44503
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    414ec76 View commit details
    Browse the repository at this point in the history
  162. [IMP] l10n_es_aeat + l10n_aeat_sii_oca: Add standard function for get…

    …ting taxes
    
    - New hook for managing changes on the function
    - New field for tax_amount
    - Call l10n_es_aeat method in SII instead of own (+ remove specific one)
    etobella authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    26fa61b View commit details
    Browse the repository at this point in the history
  163. Configuration menu
    Copy the full SHA
    1622246 View commit details
    Browse the repository at this point in the history
  164. Configuration menu
    Copy the full SHA
    877750d View commit details
    Browse the repository at this point in the history
  165. Configuration menu
    Copy the full SHA
    1869728 View commit details
    Browse the repository at this point in the history
  166. [16.0][IMP] l10n_es_aeat: Add tax agency

    nicolasramos-com authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    d5d5cb7 View commit details
    Browse the repository at this point in the history
  167. [IMP] l10n_es_aeat: Add country ISO code mapper function

    Fulfills the need (seen in l10n_es_aeat_mod369) to obtain the ISO code of a country based on the country code stored in Odoo. It is an inverse function of _map_aeat_country_code.
    aritzolea authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    3d8738d View commit details
    Browse the repository at this point in the history
  168. l10n_es_aeat: No ir.model forbidden access, sudo in domain calc

    Fixes one more remaining unauthorized access to ir.model
    On export_config_id field, domain calculation searched on ir.model
    Added sudo() to avoid unauthorized access.
    
    fixes OCA#3016
    czea authored and pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    0e92f4d View commit details
    Browse the repository at this point in the history
  169. [FIX] l10n_es_aeat: Convert COM countries to France

    COM (collectivité d'outre-mer -
    https://es.wikipedia.org/wiki/Colectividad_de_ultramar)
    are also considered France for the AEAT, so we need to map the existing
    countries to FR.
    
    TT46789
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    054205d View commit details
    Browse the repository at this point in the history
  170. Configuration menu
    Copy the full SHA
    2db3655 View commit details
    Browse the repository at this point in the history
  171. Configuration menu
    Copy the full SHA
    e4793bd View commit details
    Browse the repository at this point in the history
  172. Configuration menu
    Copy the full SHA
    a5dca32 View commit details
    Browse the repository at this point in the history
  173. [MIG] l10n_es_aeat: Finish migration

    - Switch to XML-ID names models
    - Adapt API and calls
    - Some other minor adjustments
    - Translations
    pedrobaeza committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    66f713f View commit details
    Browse the repository at this point in the history