Buenas. Veníamos utilizando el web service de CSC de Carvajal, pero nos cambiaron a CTS.
En parámetros del sistema configuramos el nuevo link:
key:
l10n_edi_carvajal_wsdl |
Valor: https://wscenf.cen.biz/isows/InvoiceService?wsdl
Pero esto arroja un error en servidor:
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 629, 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_co_edi/models/account_edi_format.py", line 478, in _post_invoice_edi
return {invoice: self._l10n_co_post_invoice_step_1(invoice)}
File "/home/odoo/src/enterprise/l10n_co_edi/models/account_edi_format.py", line 355, in _l10n_co_post_invoice_step_1
request = CarvajalRequest(invoice.move_type, invoice.company_id)
File "/home/odoo/src/enterprise/l10n_co_edi/models/carvajal_request.py", line 70, in __init__
self.wsdl = self.wsdl % ('-stage' if company.l10n_co_edi_test_mode else '')
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
TypeError: not all arguments converted during string formatting
El link utilizado antes para CSC era: https://ws%s.facturacarvajal.com/isows/InvoiceService?wsdl
como se menciona en las instrucciones: https://drive.google.com/file/d/1yB2ctexQoyKiXNbkiaE3cIsOdo9aRk8B/view y funcionaba sin problemas
Muchas gracias.
Hi, we were using CSC web service in Colombia with Carvajal for electronic invoicing.
We were changed to CTS so we had to change the system parameter as follows:
key: l10n_edi_carvajal_wsdl
Value: https://wscenf.cen.biz/isows/InvoiceService?wsdl
This is now showing the following server 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 629, 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_co_edi/models/account_edi_format.py", line 478, in _post_invoice_edi
return {invoice: self._l10n_co_post_invoice_step_1(invoice)}
File "/home/odoo/src/enterprise/l10n_co_edi/models/account_edi_format.py", line 355, in _l10n_co_post_invoice_step_1
request = CarvajalRequest(invoice.move_type, invoice.company_id)
File "/home/odoo/src/enterprise/l10n_co_edi/models/carvajal_request.py", line 70, in __init__
self.wsdl = self.wsdl % ('-stage' if company.l10n_co_edi_test_mode else '')
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
TypeError: not all arguments converted during string formatting
The link used before for CSC was: https://ws%s.facturacarvajal.com/isows/InvoiceService?wsdl
as mentioned in the following instructions: https://drive.google.com/file/d/1yB2ctexQoyKiXNbkiaE3cIsOdo9aRk8B/view and it worked fine.