Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Payroll Template Error

By
Muthumani
on 4/20/15, 3:23 AM 326 views

I have newly created for Employee Payslip template. that template attach report after preview have got error below attached thar error no 1.

after goto payslip generate has not showing  to email id...


how to solve that error.....


error 1---

Odoo Server Error

Traceback (most recent call last):

File "/home/muthumani/odoo-8.0/openerp/http.py", line 530, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/muthumani/odoo-8.0/openerp/http.py", line 567, in dispatch

result = self._call_function(**self.params)

File "/home/muthumani/odoo-8.0/openerp/http.py", line 303, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/muthumani/odoo-8.0/openerp/service/model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "/home/muthumani/odoo-8.0/openerp/http.py", line 300, in checked_call

return self.endpoint(*a, **kw)

File "/home/muthumani/odoo-8.0/openerp/http.py", line 796, in __call__

return self.method(*args, **kw)

File "/home/muthumani/odoo-8.0/openerp/http.py", line 396, in response_wrap

response = f(*args, **kw)

File "/home/muthumani/odoo-8.0/addons/web/controllers/main.py", line 949, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/home/muthumani/odoo-8.0/addons/web/controllers/main.py", line 941, in _call_kw

return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)

File "/home/muthumani/odoo-8.0/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/muthumani/odoo-8.0/openerp/api.py", line 363, in old_api

result = method(recs, *args, **kwargs)

File "/home/muthumani/odoo-8.0/openerp/models.py", line 5827, in onchange

record._onchange_eval(name, field_onchange[name], result)

File "/home/muthumani/odoo-8.0/openerp/models.py", line 5745, in _onchange_eval

method_res = getattr(self._model, method)(*args)

File "/home/muthumani/odoo-8.0/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/muthumani/odoo-8.0/addons/email_template/wizard/email_template_preview.py", line 83, in on_change_res_id

mail_values = email_template.generate_email(cr, uid, template_id, res_id, context=context)

File "/home/muthumani/odoo-8.0/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/muthumani/odoo-8.0/addons/email_template/email_template.py", line 586, in generate_email

return self.generate_email_batch(cr, uid, template_id, [res_id], context)[res_id]

File "/home/muthumani/odoo-8.0/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/muthumani/odoo-8.0/addons/email_template/email_template.py", line 514, in generate_email_batch

result, format = self.pool['report'].get_pdf(cr, uid, [res_id], report_service, context=ctx), 'pdf'

File "/home/muthumani/odoo-8.0/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/muthumani/odoo-8.0/addons/report/models/report.py", line 190, in get_pdf

html = self.get_html(cr, uid, ids, report_name, data=data, context=context)

File "/home/muthumani/odoo-8.0/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/muthumani/odoo-8.0/addons/report/models/report.py", line 165, in get_html

return particularreport_obj.render_html(cr, uid, ids, data=data, context=context)

File "/home/muthumani/odoo-8.0/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/muthumani/odoo-8.0/addons/report/models/abstract_report.py", line 66, in render_html

return self.pool['report'].render(cr, uid, [], self._template, docargs, context=context)

File "/home/muthumani/odoo-8.0/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/muthumani/odoo-8.0/addons/report/models/report.py", line 151, in render

return view_obj.render(cr, uid, template, values, context=context)

File "/home/muthumani/odoo-8.0/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_ui_view.py", line 1028, in render

return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)

File "/home/muthumani/odoo-8.0/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 253, in render

return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 430, in render_tag_call

d[0] = self.render_element(element, template_attributes, generated_attributes, d)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 416, in render_tag_foreach

ru.append(self.render_element(element, template_attributes, generated_attributes, copy_qwebcontext))

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 430, in render_tag_call

d[0] = self.render_element(element, template_attributes, generated_attributes, d)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node

result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element

raise_qweb_exception(message="Could not render element %r" % element.tag, node=element, template=template)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element

g_inner.append(self.render_node(current_node, qwebcontext))

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node

result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)

File "/home/muthumani/odoo-8.0/openerp/addons/base/ir/ir_qweb.py", line 477, in render_tag_field

field = record._fields[field_name]

QWebException: 'employee_id'

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/20/15, 3:23 AM
Seen: 326 times
Last updated: 4/20/15, 3:23 AM