OCA / l10n-spain

Odoo Spain Localization
https://www.aeodoo.org/estado-localizacion
GNU Affero General Public License v3.0
290 stars 520 forks source link

[l10n_es_aeat_mod303] Error al instalar el addon #1411

Closed sergioeix closed 4 years ago

sergioeix commented 4 years ago

Despues de instalar las depencias e instalar el modulo da este error: Odoo 13 Ubuntu 18.04

Odoo Server Error Traceback (most recent call last): File "/opt/odoo13/odoo/odoo/tools/cache.py", line 85, in lookup r = d[key] File "/opt/odoo13/odoo/odoo/tools/func.py", line 69, in wrapper return func(self, *args, **kwargs) File "/opt/odoo13/odoo/odoo/tools/lru.py", line 44, in getitem a = self.d[obj].me KeyError: ('ir.model.data', <function IrModelData.xmlid_lookup at 0x7fdffc477e18>, 'l10n_es.account_tax_template_s_iva_ns_b')

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/odoo13/odoo/odoo/tools/safe_eval.py", line 349, in safe_eval return unsafe_eval(c, globals_dict, locals_dict) File "", line 1, in File "/opt/odoo13/odoo/odoo/tools/convert.py", line 657, in id_get res = self.model_id_get(id_str, raise_if_not_found) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 663, 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 "/opt/odoo13/odoo/odoo/addons/base/models/ir_model.py", line 1666, in xmlid_to_res_model_res_id return self.xmlid_lookup(xmlid)[1:3] File "", line 2, in xmlid_lookup File "/opt/odoo13/odoo/odoo/tools/cache.py", line 90, in lookup value = d[key] = self.method(*args, **kwargs) File "/opt/odoo13/odoo/odoo/addons/base/models/ir_model.py", line 1655, 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_s_iva_ns_b

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/odoo13/odoo/odoo/tools/convert.py", line 712, in parse self._tag_root(de) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 674, in _tag_root f(rec) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 563, in _tag_record f_val = _eval_xml(self, field, env) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 117, in _eval_xml return safe_eval(a_eval, idref2) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 32, in safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True) File "/opt/odoo13/odoo/odoo/tools/safe_eval.py", line 372, in safe_eval pycompat.reraise(ValueError, ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr)), exc_info[2]) File "/opt/odoo13/odoo/odoo/tools/pycompat.py", line 13, in reraise raise value.with_traceback(tb) File "/opt/odoo13/odoo/odoo/tools/safe_eval.py", line 349, in safe_eval return unsafe_eval(c, globals_dict, locals_dict) File "", line 1, in File "/opt/odoo13/odoo/odoo/tools/convert.py", line 657, in id_get res = self.model_id_get(id_str, raise_if_not_found) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 663, 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 "/opt/odoo13/odoo/odoo/addons/base/models/ir_model.py", line 1666, in xmlid_to_res_model_res_id return self.xmlid_lookup(xmlid)[1:3] File "", line 2, in xmlid_lookup File "/opt/odoo13/odoo/odoo/tools/cache.py", line 90, in lookup value = d[key] = self.method(*args, **kwargs) File "/opt/odoo13/odoo/odoo/addons/base/models/ir_model.py", line 1655, in xmlid_lookup raise ValueError('External ID not found in the system: %s' % xmlid) ValueError: <class 'ValueError'>: "External ID not found in the system: l10n_es.account_tax_template_s_iva_ns_b" while evaluating "[(6, False, [ref('l10n_es.account_tax_template_s_iva0_e'), ref('l10n_es.account_tax_template_s_iva_ns'), ref('l10n_es.account_tax_template_s_iva_ns_b')])]"

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/opt/odoo13/odoo/odoo/http.py", line 619, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo13/odoo/odoo/http.py", line 309, in _handle_exception raise pycompat.reraise(type(exception), exception, sys.exc_info()[2]) File "/opt/odoo13/odoo/odoo/tools/pycompat.py", line 14, in reraise raise value File "/opt/odoo13/odoo/odoo/http.py", line 664, in dispatch result = self._call_function(self.params) File "/opt/odoo13/odoo/odoo/http.py", line 345, in _call_function return checked_call(self.db, *args, *kwargs) File "/opt/odoo13/odoo/odoo/service/model.py", line 93, in wrapper return f(dbname, args, kwargs) File "/opt/odoo13/odoo/odoo/http.py", line 338, in checked_call result = self.endpoint(*a, kw) File "/opt/odoo13/odoo/odoo/http.py", line 910, in call return self.method(*args, *kw) File "/opt/odoo13/odoo/odoo/http.py", line 510, in response_wrap response = f(args, kw) File "/opt/odoo13/odoo/addons/web/controllers/main.py", line 1324, in call_button action = self._call_kw(model, method, args, kwargs) File "/opt/odoo13/odoo/addons/web/controllers/main.py", line 1312, in _call_kw return call_kw(request.env[model], method, args, kwargs) File "/opt/odoo13/odoo/odoo/api.py", line 387, in call_kw result = _call_kw_multi(method, model, args, kwargs) File "/opt/odoo13/odoo/odoo/api.py", line 374, in _call_kw_multi result = method(recs, *args, kwargs) File "", line 2, in button_immediate_install File "/opt/odoo13/odoo/odoo/addons/base/models/ir_module.py", line 72, in check_and_log return method(self, *args, *kwargs) File "/opt/odoo13/odoo/odoo/addons/base/models/ir_module.py", line 463, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/opt/odoo13/odoo/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function modules.registry.Registry.new(self._cr.dbname, update_module=True) File "/opt/odoo13/odoo/odoo/modules/registry.py", line 86, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "/opt/odoo13/odoo/odoo/modules/loading.py", line 423, in load_modules loaded_modules, update_module, models_to_check) File "/opt/odoo13/odoo/odoo/modules/loading.py", line 315, in load_marked_modules perform_checks=perform_checks, models_to_check=models_to_check File "/opt/odoo13/odoo/odoo/modules/loading.py", line 225, in load_module_graph load_data(cr, idref, mode, kind='data', package=package, report=report) File "/opt/odoo13/odoo/odoo/modules/loading.py", line 68, in load_data tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 736, in convert_file convert_xml_import(cr, module, fp, idref, mode, noupdate, report) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 803, in convert_xml_import obj.parse(doc.getroot()) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 721, in parse exc_info[2] File "/opt/odoo13/odoo/odoo/tools/pycompat.py", line 13, in reraise raise value.with_traceback(tb) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 712, in parse self._tag_root(de) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 674, in _tag_root f(rec) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 563, in _tag_record f_val = _eval_xml(self, field, env) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 117, in _eval_xml return safe_eval(a_eval, idref2) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 32, in safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True) File "/opt/odoo13/odoo/odoo/tools/safe_eval.py", line 372, in safe_eval pycompat.reraise(ValueError, ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr)), exc_info[2]) File "/opt/odoo13/odoo/odoo/tools/pycompat.py", line 13, in reraise raise value.with_traceback(tb) File "/opt/odoo13/odoo/odoo/tools/safe_eval.py", line 349, in safe_eval return unsafe_eval(c, globals_dict, locals_dict) File "", line 1, in File "/opt/odoo13/odoo/odoo/tools/convert.py", line 657, in id_get res = self.model_id_get(id_str, raise_if_not_found) File "/opt/odoo13/odoo/odoo/tools/convert.py", line 663, 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 "/opt/odoo13/odoo/odoo/addons/base/models/ir_model.py", line 1666, in xmlid_to_res_model_res_id return self.xmlid_lookup(xmlid)[1:3] File "", line 2, in xmlid_lookup File "/opt/odoo13/odoo/odoo/tools/cache.py", line 90, in lookup value = d[key] = self.method(args, kwargs) File "/opt/odoo13/odoo/odoo/addons/base/models/ir_model.py", line 1655, in xmlid_lookup raise ValueError('External ID not found in the system: %s' % xmlid) odoo.tools.convert.ParseError: "<class 'ValueError'>: "External ID not found in the system: l10n_es.account_tax_template_s_iva_ns_b" while evaluating "[(6, False, [ref('l10n_es.account_tax_template_s_iva0_e'), ref('l10n_es.account_tax_template_s_iva_ns'), ref('l10n_es.account_tax_template_s_iva_ns_b')])]"" while parsing /opt/odoo13/odoo-custom-addons/l10n_es_aeat_mod303/data/tax_code_map_mod303_data.xml:4, near

303 01 Régimen General - Base imponible 4% regular base both 03 Régimen General - Cuota 4% regular amount both 04 Régimen General - Base imponible 10% regular base both 06 Régimen General - Cuota 10% regular amount both 07 Régimen General - Base imponible 21% regular base both 09 Régimen General - Cuota 21% regular amount both 10 Adquisiciones intracomunitarias de bienes y servicios - Base imponible regular base both 11 Adquisiciones intracomunitarias de bienes y servicios - Cuota regular amount both 12 Otras operac. con inversión del suj. pasivo (excepto adq. intracom.) - Base imponible regular base both 13 Otras operac. con inversión del suj. pasivo (excepto adq. intracom.) - Cuota regular amount both 14 Modificación bases y cuotas - Base imponible (Ventas) refund base both 14 Modificación bases y cuotas - Base imponible (Compras) refund base both 15 Modificación bases y cuotas - Cuota (Ventas) refund amount both 15 Modificación bases y cuotas - Cuota (Compras) refund amount both 16 Recargo equivalencia - Base imponible 0.5% regular base both 18 Recargo equivalencia - Cuota 0.5% regular amount both 19 Recargo equivalencia - Base imponible 1.4% regular base both 21 Recargo equivalencia - Cuota 1.4% regular amount both 22 Recargo equivalencia - Base imponible 5.2% regular base both 24 Recargo equivalencia - Cuota 5.2% regular amount both 25 Modificación bases y cuotas del recargo de equivalencia - Base imponible refund base both 26 Modificación bases y cuotas del recargo de equivalencia - Cuota refund amount both 28 Por cuotas soportadas en operaciones interiores corrientes - Base regular base both 29 Por cuotas soportadas en operaciones interiores corrientes - Cuota regular amount both 30 Por cuotas soportadas en operaciones interiores con bienes de inversión - Base regular base both 31 Por cuotas soportadas en operaciones interiores con bienes de inversión - Cuota regular amount both 32 Por cuotas soportadas en las importaciones de bienes corrientes - Base regular base both 33 Por cuotas soportadas en las importaciones de bienes corrientes - Cuota regular amount both 34 Por cuotas soportadas en las importaciones de bienes de inversión - Base regular base both 35 Por cuotas soportadas en las importaciones de bienes de inversión - Cuota regular amount debit 36 En adquisiciones intracomunitarias de bienes y servicios corrientes - Base regular base both 37 En adquisiciones intracomunitarias de bienes y servicios corrientes - Cuota regular amount debit 38 En adquisiciones intracomunitarias de bienes de inversión - Base regular base both 39 En adquisiciones intracomunitarias de bienes de inversión - Cuota regular amount debit 40 Rectificación de deducciones - Base refund base both 41 Rectificación de deducciones - Cuota refund amount both 42 Compensaciones Régimen especial A. G. y P. - Cuota compras all amount both 43 Regularización bienes de inversión 44 Regularización por aplicación del porcentaje definitivo de prorrata 59 Entregas intracomunitarias de bienes y servicios - Base ventas all base both 60 Exportaciones y operaciones asimiladas - Base ventas all base both 61 Operaciones no sujetas o con inversión del sujeto pasivo que originan derecho a dedución - Base ventas all base both 62 Importes de las entregas de bienes y prestaciones de servicios a las que habiéndoles sido aplicado el régimen especial del criterio de caja hubieran resultado devengadas conforme a la regla general de devengo contenida en el art. 75 LIVA - Base imponible 63 Importes de las entregas de bienes y prestaciones de servicios a las que habiéndoles sido aplicado el régimen especial del criterio de caja hubieran resultado devengadas conforme a la regla general de devengo contenida en el art. 75 LIVA - Cuota 74 Importe de las adquisiciones de bienes y servicios a las que sea de aplicación o afecte el régimen especial del criterio de caja conforme a la ley general de devengo contenida en el artículo 75 de LIVA - Base imponible 75 Importe de las adquisiciones de bienes y servicios a las que sea de aplicación o afecte el régimen especial del criterio de caja conforme a la ley general de devengo contenida en el artículo 75 de LIVA - Cuota 80 Operaciones en régimen general all base both 83 Operaciones exentas sin derecho a deducción all base both 84 Operaciones no sujetas por reglas de localización o con inversión del sujeto pasivo all base both 93 Entregas intracomunitarias exentas all base both 94 Exportaciones y otras operaciones exentas con derecho a deducción all base both 96 Operaciones realizadas por sujetos pasivos acogidos al régimen especial del recargo de equivalencia all base both
pedrobaeza commented 4 years ago

Tienes un l10n_es desactualizado. Debes tener siempre la última versión de todo el código, y actualizar la BD consecuentemente.