Error Cancelación Factura rama develop
Buenas tardes
Probando el módulo de facturación con Factura-lo, me tope con lo siguiente:
Si no se tiene configurado la zona horaria correctamente manda el siguiente error:
OpenERP Server Error Client Traceback (most recent call last): File "/home/jorge-medina/openerp/instancias/7.0/modules/web/http.py", line 204, in dispatch response["result"] = method(self, **self.params) File "/home/jorge-medina/openerp/instancias/7.0/modules/web/controllers/main.py", line 1139, in exec_workflow return req.session.exec_workflow(model, id, signal) File "/home/jorge-medina/openerp/instancias/7.0/modules/web/session.py", line 147, in exec_workflow r = self.proxy('object').exec_workflow(self._db, self._uid, self._password, model, signal, id) File "/home/jorge-medina/openerp/instancias/7.0/modules/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args) File "/home/jorge-medina/openerp/instancias/7.0/modules/web/session.py", line 103, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)
Server Traceback (most recent call last): File "/home/jorge-medina/openerp/instancias/7.0/modules/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/netsvc.py", line 296, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, *args, **kwargs) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/osv/osv.py", line 222, in exec_workflow res = self.exec_workflow_cr(cr, uid, obj, signal, *args) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/osv/osv.py", line 215, in exec_workflow_cr return object._workflow_signal(cr, uid, [res_id], signal)[res_id] File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/osv/orm.py", line 4002, in _workflow_signal result[res_id] = wf_service.trg_validate(uid, self._name, res_id, signal, cr) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/workflow/wkf_service.py", line 119, in trg_validate res2 = instance.validate(cr, id, ident, signal) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/workflow/instance.py", line 43, in validate workitem.process(cr, witem, ident, signal, force_running, stack=stack) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/workflow/workitem.py", line 60, in process ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/workflow/workitem.py", line 175, in _split_test _join_test(cr, t[0], t[1], ident, stack) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/workflow/workitem.py", line 183, in _join_test create(cr,[activity], inst_id, ident, stack) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/workflow/workitem.py", line 40, in create process(cr, res, ident, stack=stack) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/workflow/workitem.py", line 52, in process result = _execute(cr, workitem, activity, ident, stack) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/workflow/workitem.py", line 106, in _execute returned_action = wkf_expr.execute(cr, ident, workitem, activity) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/workflow/wkf_expr.py", line 67, in execute return _eval_expr(cr, ident, workitem, activity['action']) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/workflow/wkf_expr.py", line 57, in _eval_expr ret = eval(line, env, nocopy=True) File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/tools/safe_eval.py", line 285, in safe_eval return eval(test_expr(expr, _SAFE_OPCODES, mode=mode), globals_dict, locals_dict) File "", line 1, in File "/home/jorge-medina/openerp/instancias/7.0/server/openerp/osv/orm.py", line 377, in function_proxy return attr(self._cr, self._uid, [self._id], *args, **kwargs) File "/home/jorge-medina/openerp/instancias/7.0/modules/l10n_mx_facturae/invoice.py", line 258, in action_cancel return super(account_invoice, self).action_cancel(cr, uid, ids, context=context) File "/home/jorge-medina/openerp/instancias/7.0/modules/l10n_mx_ir_attachment_facturae/invoice.py", line 50, in action_cancel attach_obj.signal_cancel(cr, uid, [attach.id], context=context) File "/home/jorge-medina/openerp/instancias/7.0/modules/l10n_mx_ir_attachment_facturae/ir_attachment_facturae.py", line 367, in signal_cancel cr, uid, [attach.id], context=context File "/home/jorge-medina/openerp/instancias/7.0/modules/l10n_mx_facturae_pac_facturalo/ir_attachment_facturae.py", line 211, in cancel_file cr, uid, [invoice.id], context=context File "/home/jorge-medina/openerp/instancias/7.0/modules/l10n_mx_facturae_pac_facturalo/invoice.py", line 306, in cancel_invoice_xml data_xml = self.cancel_invoice_dict(cr, uid, ids, context=context) File "/home/jorge-medina/openerp/instancias/7.0/modules/l10n_mx_facturae_pac_facturalo/invoice.py", line 219, in cancel_invoice_dict tz = timezone(user.partner_id.tz) or pytz.utc File "/usr/lib/python2.7/dist-packages/pytz/init.py", line 157, in timezone if zone.upper() == 'UTC': AttributeError: 'bool' object has no attribute 'upper'
Además si ya configuras la zona horaria, marca lo siguiente y truena el sistema de OpenERP:
Exception happened during processing of request from ('127.0.0.1', 42480) Traceback (most recent call last): File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread self.finish_request(request, client_address) File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/lib/python2.7/SocketServer.py", line 640, in init self.finish() File "/usr/lib/python2.7/SocketServer.py", line 693, in finish self.wfile.flush() File "/usr/lib/python2.7/socket.py", line 303, in flush self._sock.sendall(view[write_offset:write_offset+buffer_size]) error: [Errno 32] Tubería rota
Sin embargo si queda cancelada la Factura.
¿Faltará algo que configurar?
NOTA: El manual ya lo termine falta nada más la sección de Cancelación afinarla paso por paso, en donde lo subo? (disculpa la tardanza).
Saludos