0

Error al obtener puntos de venta homologación

por
razor7
en 05/08/16 02:12 817 vistas

Hola! al hacer click en el boton Obtener punto de venta me tira el siguiente error. Les comento que logre la conexión con AFIP en homologación y que ademas el "test" da todo OK, lo demas no anda...
 

Odoo Server Error

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 543, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 580, in dispatch result = self._call_function(**self.params) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 316, in _call_function return checked_call(self.db, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper return f(dbname, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 313, in checked_call return self.endpoint(*a, **kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 809, in __call__ return self.method(*args, **kw) File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 409, in response_wrap response = f(*args, **kw) File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 948, in call_button action = self._call_kw(model, method, args, {}) File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 936, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper return old_api(self, *args, **kwargs) File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 399, in old_api result = method(recs, *args, **kwargs) File "/mnt/extra-addons/odoo-argentina/l10n_ar_afipws_fe/models/afip_point_of_sale.py", line 89, in test_pyafipws_point_of_sales ret = ws.ParamGetPtosVenta(sep=" ") File "/usr/local/lib/python2.7/dist-packages/pyafipws/utils.py", line 150, in capturar_errores_wrapper return func(self, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/pyafipws/wsfev1.py", line 829, in ParamGetPtosVenta Auth={'Token': self.Token, 'Sign': self.Sign, 'Cuit': self.Cuit}, File "/usr/local/lib/python2.7/dist-packages/pysimplesoap/client.py", line 147, in <lambda> return lambda *args, **kwargs: self.wsdl_call(attr,*args,**kwargs) File "/usr/local/lib/python2.7/dist-packages/pysimplesoap/client.py", line 342, in wsdl_call response = self.call(method, *params) File "/usr/local/lib/python2.7/dist-packages/pysimplesoap/client.py", line 220, in call raise SoapFault(unicode(response.faultcode), unicode(response.faultstring)) SoapFault: soap:Client: Server was unable to read request. ---> There is an error in XML document (5, 1059).

En el log de Odoo obtengo esto:

2016-08-05 02:19:03,856 1 INFO odoo_mgs_ar openerp.addons.l10n_ar_afipws.models.res_company: Getting connection for company Martin Sebastian Briglia Ghia and ws wsfe
2016-08-05 02:19:03,858 1 INFO odoo_mgs_ar openerp.addons.l10n_ar_afipws.models.res_company: Running arg electronic invoice on homologation mode
2016-08-05 02:19:03,860 1 INFO odoo_mgs_ar openerp.addons.l10n_ar_afipws.models.afipws_connection: Getting connection to ws wsfe from libraries on connection id 1
2016-08-05 02:19:03,860 1 INFO odoo_mgs_ar openerp.addons.l10n_ar_afipws.models.afipws_connection: Getting ws wsfe from libraries
2016-08-05 02:19:03,860 1 INFO odoo_mgs_ar openerp.addons.l10n_ar_afipws.models.afipws_connection: Getting URL for afip ws wsfe on homologation
2016-08-05 02:19:03,864 1 INFO odoo_mgs_ar openerp.addons.l10n_ar_afipws.models.afipws_connection: Connection getted with url "https://wswhomo.afip.gov.ar/wsfev1/service.asmx?WSDL", cuit "False"
2016-08-05 02:19:03,864 1 INFO odoo_mgs_ar pysimplesoap.client: POST https://wswhomo.afip.gov.ar/wsfev1/service.asmx
2016-08-05 02:19:03,865 1 INFO odoo_mgs_ar pysimplesoap.client: Headers: {'SOAPAction': '"http://ar.gov.afip.dif.FEV1/FEParamGetPtosVenta"', 'Content-length': '1413', 'Content-type': 'text/xml; charset="UTF-8"'}
2016-08-05 02:19:04,101 1 ERROR odoo_mgs_ar openerp.http: Exception during JSON request handling.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 543, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 580, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 316, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 313, in checked_call
    return self.endpoint(*a, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 809, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 409, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 948, in call_button
    action = self._call_kw(model, method, args, {})
  File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 936, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 399, in old_api
    result = method(recs, *args, **kwargs)
  File "/mnt/extra-addons/odoo-argentina/l10n_ar_afipws_fe/models/afip_point_of_sale.py", line 89, in test_pyafipws_point_of_sales
    ret = ws.ParamGetPtosVenta(sep=" ")
  File "/usr/local/lib/python2.7/dist-packages/pyafipws/utils.py", line 150, in capturar_errores_wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pyafipws/wsfev1.py", line 829, in ParamGetPtosVenta
    Auth={'Token': self.Token, 'Sign': self.Sign, 'Cuit': self.Cuit},
  File "/usr/local/lib/python2.7/dist-packages/pysimplesoap/client.py", line 147, in <lambda>
    return lambda *args, **kwargs: self.wsdl_call(attr,*args,**kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pysimplesoap/client.py", line 342, in wsdl_call
    response = self.call(method, *params)
  File "/usr/local/lib/python2.7/dist-packages/pysimplesoap/client.py", line 220, in call
    raise SoapFault(unicode(response.faultcode), unicode(response.faultstring))
SoapFault: soap:Client: Server was unable to read request. ---> There is an error in XML document (5, 1059). ---> Input string was not in a correct format.
2016-08-05 02:19:04,103 1 INFO odoo_mgs_ar werkzeug: 10.0.0.2 - - [05/Aug/2016 02:19:04] "POST /web/dataset/call_button HTTP/1.1" 200 -


1
razor7
En 05/08/16 03:10

En fin, me respondo a mi mismo por si a alguien le sirve. Resulta que cree una nueva compañia, le setie todos los datos pero por alguna razón no me creo el partner asociado, asique al user admin le habilite las "características técnicas" y luego de eso, al editar mi nueva compañis me permito editar el partner y asi podes cargarle el CUIT, despues de eso anda todo ok!

 

  • Flag


0
Juan Manuel
En 26/06/18 03:20

MUCHAS GRACIAS! me pasaba lo mismo y estuve mas de 6 horas renegando... Por suerte di con tu respuesta! Genio!

  • Flag

Su respuesta

Por favor trate de dar una respuesta sustancial. Si desea comentar sobre la pregunta o respuesta, utilice la herramienta de comentarios. Recuerde que siempre puede revisar sus respuestas - no hay necesidad de contestar la misma pregunta dos veces. Además, no olvide valorar - realmente ayuda a seleccionar las mejores preguntas y respuestas

Hacer una pregunta

Mantener informado

Sobre este foro

Esta comunidad es para profesionales y entusiastas de nuestros productos y servicios.

Lea las directrices

Herramientas de las preguntas

42 seguidor(es)

Estadísticas

Preguntado: 05/08/16 02:12
Visto: 817 veces
Última actualización: 26/06/18 03:20