General

¡Bienvenido a los foros Aeodoo!

Somos la comunidad de Odoo internacional hispanohablante.
Estos foros son para compartir y debatir dudas técnicas, funcionales y mejores prácticas para Odoo. Recuerda que no están permitidos los insultos, descalificaciones o spam, cualquier conducta reprobable supondrá el baneo del usuario.

0

Error al instalar algunos módulos AEAT

Avatar
John Odooe

Tengo un error recurrente instalando módulos de modelos de Hacienda. Algunos me permite la instalación o otros no.

He instalado in problemas l10n_es_aeat_mod130 y l10n_es_aeat_mod347. Pero fallan:

- l10n_es_aeat_mod190

- l10n_es_aeat_mod303

- l10n_es_aeat_mod390


ERROR AL INSTALAR 303 (l10n_es_aeat_mod303) Y 390 (l10n_es_aeat_mod390)

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1651, in _serve_db

    return service_model.retrying(self._serve_ir_http, self.env)

  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying

    result = func()

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1678, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1882, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 154, in _dispatch

    result = endpoint(**request.params)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 734, in route_wrapper

    result = endpoint(self, *args, **params_ok)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 46, in call_button

    action = self._call_kw(model, method, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 468, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 453, in _call_kw_multi

    result = method(recs, *args, **kwargs)

  File "<decorator-gen-77>", line 2, in button_immediate_install

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 74, in check_and_log

    return method(self, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 475, in button_immediate_install

    return self._button_immediate_function(self.env.registry[self._name].button_install)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 599, in _button_immediate_function

    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)

  File "<decorator-gen-16>", line 2, in new

  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked

    return func(inst, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 91, in new

    odoo.modules.load_modules(registry, force_demo, status, update_module)

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 488, in load_modules

    processed_modules += load_marked_modules(cr, graph,

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 372, in load_marked_modules

    loaded, processed = load_module_graph(

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 231, in load_module_graph

    load_data(cr, idref, mode, kind='data', package=package)

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 71, in load_data

    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 759, in convert_file

    convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 805, in convert_csv_import

    raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg))

Exception: Ocurrió un error al cargar el módulo l10n_es_aeat_mod303: no se pudo procesar el archivo l10n_es_aeat_mod303/data/2024-10/l10n.es.aeat.map.tax.line.csv:

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_iva2_ic_bc' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_iva2_ic_bc' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_iva2_isc' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_iva2_isc' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_iva2b' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_iva2_ic_bc' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_iva2b' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_iva2_ic_bc' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_req1' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_req1' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_req026' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_req026' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_iva2_ibc' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_iva2_ibc' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_iva2_ic_bc' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_iva2_ic_bc' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_req026' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_p_req026' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_iva7-5b' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_iva7-5b' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_iva7-5b' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_iva2b' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_iva2b' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_req026' en el campo 'Taxes templates'

No se han encontrado registros coincidentes para id externo 'l10n_es.account_tax_template_s_req026' en el campo 'Taxes templates'


The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    RPC_ERROR

        at makeErrorFromResponse 

        at XMLHttpRequest.<anonymous>



ERROR AL INSTALAR  190(l10n_es_aeat_mod190)

RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 85, in lookup

    r = d[key]

  File "<decorator-gen-8>", line 2, in __getitem__

  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked

    return func(inst, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 34, in __getitem__

    a = self.d[obj]

KeyError: ('ir.model.data', <function IrModelData._xmlid_lookup at 0x7f186ebad040>, 'l10n_es.account_tax_template_p_irpf19ca')


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/tools/safe_eval.py", line 391, in safe_eval

    return unsafe_eval(c, globals_dict, locals_dict)

  File "", line 1, in <module>

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 681, in id_get

    res = self.model_id_get(id_str, raise_if_not_found)

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 687, in model_id_get

    return self.env['ir.model.data']._xmlid_to_res_model_res_id(id_str, raise_if_not_found=raise_if_not_found)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 2041, in _xmlid_to_res_model_res_id

    return self._xmlid_lookup(xmlid)[1:3]

  File "<decorator-gen-43>", line 2, in _xmlid_lookup

  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 90, in lookup

    value = d[key] = self.method(*args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 2034, in _xmlid_lookup

    raise ValueError('External ID not found in the system: %s' % xmlid)

ValueError: External ID not found in the system: l10n_es.account_tax_template_p_irpf19ca


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 698, in _tag_root

    f(rec)

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 573, in _tag_record

    f_val = _eval_xml(self, field, env)

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 117, in _eval_xml

    return safe_eval(a_eval, idref2)

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 39, in <lambda>

    safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True)

  File "/usr/lib/python3/dist-packages/odoo/tools/safe_eval.py", line 405, in safe_eval

    raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr))

ValueError: <class 'ValueError'>: "External ID not found in the system: l10n_es.account_tax_template_p_irpf19ca" while evaluating

"[(6, False, [              ref('l10n_es.account_tax_template_p_irpf21t'),              ref('l10n_es.account_tax_template_p_irpf21td'),              ref('l10n_es.account_tax_template_p_irpf19ca'),              ref('l10n_es.account_tax_template_p_irpf35cya'),         ])]"


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1651, in _serve_db

    return service_model.retrying(self._serve_ir_http, self.env)

  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying

    result = func()

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1678, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1882, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 154, in _dispatch

    result = endpoint(**request.params)

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 734, in route_wrapper

    result = endpoint(self, *args, **params_ok)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 46, in call_button

    action = self._call_kw(model, method, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 468, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 453, in _call_kw_multi

    result = method(recs, *args, **kwargs)

  File "<decorator-gen-77>", line 2, in button_immediate_install

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 74, in check_and_log

    return method(self, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 475, in button_immediate_install

    return self._button_immediate_function(self.env.registry[self._name].button_install)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 599, in _button_immediate_function

    registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)

  File "<decorator-gen-16>", line 2, in new

  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked

    return func(inst, *args, **kwargs)

  File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 91, in new

    odoo.modules.load_modules(registry, force_demo, status, update_module)

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 488, in load_modules

    processed_modules += load_marked_modules(cr, graph,

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 372, in load_marked_modules

    loaded, processed = load_module_graph(

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 231, in load_module_graph

    load_data(cr, idref, mode, kind='data', package=package)

  File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 71, in load_data

    tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 763, in convert_file

    convert_xml_import(cr, module, fp, idref, mode, noupdate)

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 829, in convert_xml_import

    obj.parse(doc.getroot())

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 749, in parse

    self._tag_root(de)

  File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 711, in _tag_root

    raise ParseError('while parsing %s:%s, somewhere inside\n%s' % (

odoo.tools.convert.ParseError: while parsing /mnt/extra-addons/l10n_es_aeat_mod190/data/tax_code_map_mod190_data.xml:6, somewhere inside

<record id="aeat_mod190_map_line_11" model="l10n.es.aeat.map.tax.line">

        <field name="map_parent_id" ref="aeat_mod190_map"/>

        <field name="field_number">11</field>

        <field name="name">Rendimientos del trabajo (dinerarios) - Importe de las percepciones</field>

        <field name="field_type">base</field>

        <field name="sum_type">both</field>

        <field name="inverse" eval="True"/>

        <!-- Base facturas de compra (debe) - Base facturas rectificativas de compra (haber):

             P_IRPFT, P_IRPFTD -->

        <field name="tax_ids" eval="[(6, False, [              ref('l10n_es.account_tax_template_p_irpf21t'),              ref('l10n_es.account_tax_template_p_irpf21td'),              ref('l10n_es.account_tax_template_p_irpf19ca'),              ref('l10n_es.account_tax_template_p_irpf35cya'),         ])]"/>

    </record>


The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    RPC_ERROR

        at makeErrorFromResponse

        at XMLHttpRequest.<anonymous>

He intentado actualizar el resto de módulos relacionados con localización española, revisado registros, versiones..., y nada. ¡Gracias de antemano!

Avatar
Discard
2 Answers
0
Avatar
John Odooe
Best Answer

¡Buenas!

¡Muchas gracias por la respuesta!

Es Odoo v16 Community, el problema es que está desplegado en un Docker y es un proyecto que ya estaba en producción. Busco una opción de realmente encontrar qué falla. ¿Me recomiendas reinstalar el Core?

¡Muchas gracias y un saludo!

1 Comment
Avatar
Discard
Avatar
Alejandro Aladro
-

En principio que este desplegado con docker no debería ser un problema, pero bueno si no tienes posibilidad de actualizar a la ultima versión del código de la versión 16, lo que puedes hacer es intentar buscar un commit mas antiguo de los módulos de la oca que no te rompan con dicha versión del core, pero vamos lo mas fácil y aconsejable, es que actualices todo, al código mas nuevo tanto de oca como de odoo.

un saludo.

0
Avatar
Alejandro Aladro
Best Answer

Hola, asegúrate de que tienes la ultima versión del core de odoo, actualiza con el modulo: account_chart_update te debería generar los impuestos que te falten con el correcto xmlid y luego intenta instalar los módulos de oca l10n-spain.

si estas por debajo de v15 quizás necesitas a parte de intentar tener la ultima versión de odoo un módulo que se llama: l10n_es_extra_data


un saludo

Avatar
Discard

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!