Error al generar libro de remuneraciones payroll

Buenas tarde he descargado l10n_cl_hr_payroll-8.0 del repositorio gibhub al generar libro de remuneraciones obtengo el siguiente error

Odoo Server Error

Traceback (most recent call last): File "/opt/odoo/addons/report/controllers/main.py", line 100, in report_download response = self.report_routes(reportname, converter='pdf', **dict(data)) File "/opt/odoo/openerp/http.py", line 514, in response_wrap response = f(*args, **kw) File "/opt/odoo/addons/report/controllers/main.py", line 45, in report_routes pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=data, context=context) File "/opt/odoo/openerp/api.py", line 250, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/addons/report/models/report.py", line 181, in get_pdf html = self.get_html(cr, uid, ids, report_name, data=data, context=context) File "/opt/odoo/openerp/api.py", line 250, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/addons/report/models/report.py", line 137, in get_html return particularreport_obj.render_html(cr, uid, ids, data=data, context=context) File "/opt/odoo/openerp/api.py", line 250, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/addons/report/models/abstract_report.py", line 48, in render_html return self.pool['report'].render(cr, uid, [], self._template, docargs, context=context) File "/opt/odoo/openerp/api.py", line 250, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/addons/report/models/report.py", line 123, in render return view_obj.render(cr, uid, template, values, context=context) File "/opt/odoo/openerp/api.py", line 250, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/addons/web_editor/models/ir_ui_view.py", line 29, in render return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context) File "/opt/odoo/openerp/api.py", line 250, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1081, in render return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context) File "/opt/odoo/openerp/api.py", line 250, in wrapper return old_api(self, *args, **kwargs) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 254, in render return self.render_node(element, qwebcontext, generated_attributes=qwebcontext.pop('generated_attributes', '')) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element generated_attributes= name == "t" and generated_attributes or '')) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 448, in render_tag_call d[0] = self.render_element(element, template_attributes, generated_attributes, d) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element generated_attributes= name == "t" and generated_attributes or '')) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 448, in render_tag_call d[0] = self.render_element(element, template_attributes, generated_attributes, d) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element generated_attributes= name == "t" and generated_attributes or '')) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element generated_attributes= name == "t" and generated_attributes or '')) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element generated_attributes= name == "t" and generated_attributes or '')) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 297, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element generated_attributes= name == "t" and generated_attributes or '')) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 295, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 388, in render_tag_foreach enum = self.eval_object(expr, qwebcontext) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 198, in eval_object return self.eval(expr, qwebcontext) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 195, in eval raise_qweb_exception(message="Could not evaluate expression %r" % expr, expression=expr, template=template) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 192, in eval return qwebcontext.safe_eval(expr) File "/opt/odoo/openerp/addons/base/ir/ir_qweb.py", line 104, in safe_eval return eval(expr, None, locals_dict, nocopy=True, locals_builtins=True) File "/opt/odoo/openerp/tools/safe_eval.py", line 298, in safe_eval return eval(c, globals_dict, locals_dict) File "", line 1, in <module> File "/opt/odoo/addons/l10n_cl_hr_payroll/report/report_hr_salary_book.py", line 183, in get_employee2 emp_salary.append(id_data[cont][5]) QWebException: "tuple index out of range" while evaluating "get_employee2(data['form'])"

alguien me puede ayudar o dar una pista de alguna solucion gracias de antemano

Edwin Valdez Aroni
Edwin Valdez Aroni
13
| 1 1 1
Preguntado en 28-02-17 20:06
0
voto
1636 Vistas

Hola Edwin, 

Este caso daba cuando tenías un empleado con dos contratos solapados. El módulo no contempla dos contratos. 

Saludos!

Nelson Ramírez S. Chile
Nelson Ramírez S.
587
| 2 0 2
Respondido en 06-03-17 14:58
0
voto

Hola mi estimado,

Pude encontrar el error en el archivo report_hr_salary_book.py en la linea 227 en la query que se esta ejecutando solo esta sacando 4 parametros lo cual al enviarse solo deberian ser 4 y no 5 quite la linea la siguiente emp_salary.append(id_data[cont][5]) lo mismo en la vista report_hrsalarybymonth.xml al realizar esos cambios funciono correctamente espero que sea correcto.

Edwin Valdez Aroni
Edwin Valdez Aroni
13
| 1 1 1
Respondido en 09-03-17 12:45
0
voto

Su respuesta

Trate por favor de dar una respuesta sustancial. Si quiere comentar en la pregunta o la respuesta, sólo use la herramienta de comentarios. Recuerde que siempre puede revise sus respuestas - no hay necesidad de responder dos veces la misma pregunta. También no olvide votar - ¡ayuda realmente a seleccionar las mejores preguntas y respuestas!

Realizar 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

49 seguidor(es)

Estadísticas

Preguntado: 28-02-17 20:06
Visto: 1636 veces
Última actualización: 26-05-17 16:22