Skip to Content
Menu
This question has been flagged

Después de que actualizamos el certificado SAT, ahora cuando trato de procesar una factura me sale el siguiente error (After we updated the SAT certificate, now when we try to process an invoice we get the following error):

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http\.py",\ line\ 237,\ in\ _dispatch
\ \ \ \ result\ =\ request\.dispatch\(\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 687,\ in\ dispatch
\ \ \ \ result\ =\ self\._call_function\(\*\*self\.params\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 359,\ in\ _call_function
\ \ \ \ return\ checked_call\(self\.db,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/odoo/src/odoo/odoo/service/model\.py",\ line\ 94,\ in\ wrapper
\ \ \ \ return\ f\(dbname,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 348,\ in\ checked_call
\ \ \ \ result\ =\ self\.endpoint\(\*a,\ \*\*kw\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 916,\ in\ __call__
\ \ \ \ return\ self\.method\(\*args,\ \*\*kw\)
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 535,\ in\ response_wrap
\ \ \ \ response\ =\ f\(\*args,\ \*\*kw\)
\ \ File\ "/home/odoo/src/odoo/addons/web/controllers/main\.py",\ line\ 1346,\ in\ call_button
\ \ \ \ action\ =\ self\._call_kw\(model,\ method,\ args,\ kwargs\)
\ \ File\ "/home/odoo/src/odoo/addons/web/controllers/main\.py",\ line\ 1334,\ in\ _call_kw
\ \ \ \ return\ call_kw\(request\.env\[model\],\ method,\ args,\ kwargs\)
\ \ File\ "/home/odoo/src/odoo/odoo/api\.py",\ line\ 464,\ in\ call_kw
\ \ \ \ result\ =\ _call_kw_multi\(method,\ model,\ args,\ kwargs\)
\ \ File\ "/home/odoo/src/odoo/odoo/api\.py",\ line\ 451,\ in\ _call_kw_multi
\ \ \ \ result\ =\ method\(recs,\ \*args,\ \*\*kwargs\)
\ \ File\ "/home/odoo/src/odoo/addons/account_edi/models/account_move\.py",\ line\ 628,\ in\ action_process_edi_web_services
\ \ \ \ docs\._process_documents_web_services\(with_commit=with_commit\)
\ \ File\ "/home/odoo/src/odoo/addons/account_edi/models/account_edi_document\.py",\ line\ 247,\ in\ _process_documents_web_services
\ \ \ \ self\._process_job\(documents,\ doc_type\)
\ \ File\ "/home/odoo/src/odoo/addons/account_edi/models/account_edi_document\.py",\ line\ 196,\ in\ _process_job
\ \ \ \ edi_result\ =\ edi_format\._post_invoice_edi\(invoices\)
\ \ File\ "/home/odoo/src/enterprise/l10n_mx_edi/models/account_edi_format\.py",\ line\ 1239,\ in\ _post_invoice_edi
\ \ \ \ res\ =\ self\._l10n_mx_edi_export_invoice_cfdi\(invoice\)
\ \ File\ "/home/odoo/src/enterprise/l10n_mx_edi/models/account_edi_format\.py",\ line\ 405,\ in\ _l10n_mx_edi_export_invoice_cfdi
\ \ \ \ cfdi_cadena_crypted\ =\ cfdi_values\['certificate'\]\.sudo\(\)\.get_encrypted_cadena\(decoded_cfdi_values\['cadena'\]\)
Exception

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

Traceback\ \(most\ recent\ call\ last\):
\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 643,\ in\ _handle_exception
\ \ \ \ return\ super\(JsonRequest,\ self\)\._handle_exception\(exception\)
\ \ File\ "/home/odoo/src/odoo/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
KeyError: 'cadena'

Avatar
Discard
Best Answer

Hola Christian, desconozco si aún continúas con el problema, espero no sea así.

Debes en cuando realizan actualizaciones a los módulos de localización, entra en Aplicaciones -> Borra la búsqueda actual -> "mx" y actualiza los módulos instalados.

Avatar
Discard
Related Posts Replies Views Activity
4
Apr 24
2215
1
Nov 24
99
2
Oct 24
195
1
Dec 23
604
1
Apr 21
5864