Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

1

Problema al validar factura en AFIP Produccion

por
Gaston Garcia
en 6/8/16 15:45 635 vistas

Buenos dias, queria consultarles, estaba trabajando hasta hoy tranquilamente con la facturacion electronica con certificado de produccion, pero ahora al intentar realizar la correspondiente validacion me salta el siguiente error:

Odoo Server Error

Traceback (most recent call last):

File "/opt/odoo/odoo-server/openerp/http.py", line 543, in _handle_exception return super(JsonRequest, self)._handle_exception(exception)

File "/opt/odoo/odoo-server/openerp/http.py", line 580, in dispatch result = self._call_function(**self.params)

File "/opt/odoo/odoo-server/openerp/http.py", line 316, in _call_function return checked_call(self.db, *args, **kwargs) File "/opt/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper return f(dbname, *args, **kwargs)

File "/opt/odoo/odoo-server/openerp/http.py", line 313, in checked_call return self.endpoint(*a, **kw)

File "/opt/odoo/odoo-server/openerp/http.py", line 809, in __call__ return self.method(*args, **kw)

File "/opt/odoo/odoo-server/openerp/http.py", line 409, in response_wrap response = f(*args, **kw)

File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 955, in exec_workflow return request.session.exec_workflow(model, id, signal)

File "/opt/odoo/odoo-server/openerp/http.py", line 1117, in exec_workflow r = self.proxy('object').exec_workflow(self.db, self.uid, self.password, model, signal, id)

File "/opt/odoo/odoo-server/openerp/http.py", line 885, in proxy_method result = dispatch_rpc(self.service_name, method, args)

File "/opt/odoo/odoo-server/openerp/http.py", line 115, in dispatch_rpc result = dispatch(method, params)

File "/opt/odoo/odoo-server/openerp/service/model.py", line 37, in dispatch res = fn(db, uid, *params)

File "/opt/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper return f(dbname, *args, **kwargs)

File "/opt/odoo/odoo-server/openerp/service/model.py", line 188, in exec_workflow return exec_workflow_cr(cr, uid, obj, signal, *args)

File "/opt/odoo/odoo-server/openerp/service/model.py", line 182, in exec_workflow_cr return execute_cr(cr, uid, obj, 'signal_workflow', [res_id], signal)[res_id]

File "/opt/odoo/odoo-server/openerp/service/model.py", line 164, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/opt/odoo/odoo-server/openerp/api.py", line 268, in wrapper return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo-server/openerp/models.py", line 3571, in signal_workflow result[res_id] = workflow.trg_validate(uid, self._name, res_id, signal, cr) File "/opt/odoo/odoo-server/openerp/workflow/__init__.py", line 85, in trg_validate return WorkflowService.new(cr, uid, res_type, res_id).validate(signal) File "/opt/odoo/odoo-server/openerp/workflow/service.py", line 91, in validate res2 = wi.validate(signal)

File "/opt/odoo/odoo-server/openerp/workflow/instance.py", line 80, in validate wi.process(signal=signal, force_running=force_running, stack=stack) File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 120, in process ok = self._split_test(activity['split_mode'], signal, stack) File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 248, in _split_test self._join_test(t[0], t[1], stack)

File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 257, in _join_test WorkflowItem.create(self.session, self.record, activity, inst_id, stack=stack) File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 95, in create workflow_item.process(stack=stack)

File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 116, in process if not self._execute(activity, stack):

File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 162, in _execute returned_action = self.wkf_expr_execute(activity)

File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 313, in wkf_expr_execute return self.wkf_expr_eval_expr(activity['action']) File "/opt/odoo/odoo-server/openerp/workflow/workitem.py", line 291, in wkf_expr_eval_expr result = eval(line, env, nocopy=True)

File "/opt/odoo/odoo-server/openerp/tools/safe_eval.py", line 314, in safe_eval return eval(c, globals_dict, locals_dict) File "", line 1, in <module>

ValueError: "name 'afip_validation' is not defined" while evaluating u'afip_validation()'

Podran orientarme como resolver este problema.

Muchas gracias.

Edito: Desde ya que realizo todas las pruebas del certificado y todas dan correctamente.

Tengo el mismo problema, lo pudiste solucionar?

Iber
de 27/10/17 20:42

1
Adrián Borella
En 30/10/17 15:31

Hola, puede ser que hayas instalado el módulo de Gustavo para hacer impresiones fiscales?, si es el caso, gustavo tiene un método en account_invoice llamado "afip_validation()" que no esta en la localizacion argentina, se deberia sacar el grupo de acciones que ejecuta al validar la factura.



0
Gustavo Orrillo
En 27/10/17 21:01

proba reiniciando el server de Odoo, lo que sucede es que Odoo no esta reconocimiendo el método para validar la factura. 


Mantener informado

Acerca de esta comunidad

Esta comunidad es para profesionales y entusiastas de nuestros productos y servicios, compartir los mejores contenidos y nuevas ideas de marketing, construir su perfil profesional y mejorar el mercado para todos. Lea las directrices

Herramientas de las preguntas

42 seguidor(es)

Estadísticas

Preguntado: 6/8/16 15:45
Visto: 635 veces
Última actualización: 14/4/18 12:41