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

Print Payslips Odoo Server Error

By
Gerald Ngui
on 6/1/15, 9:37 AM 662 views

I am running Odoo 8 on Windows 7. I am trying to print an employees payslip who has the default "base for new structures" as the salary structure. I receive the below error. I have created two other databases and I get the same error all the time.

How can I fix this?

Traceback (most recent call last):
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\report\controllers\main.py", line 121, in report_download
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\.\openerp\http.py", line 402, in response_wrap
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\report\controllers\main.py", line 65, in report_routes
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\.\openerp\api.py", line 241, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\report\models\report.py", line 191, in get_pdf
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\.\openerp\api.py", line 241, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\report\models\report.py", line 166, in get_html
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\.\openerp\api.py", line 241, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\report\models\abstract_report.py", line 66, in render_html
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\.\openerp\api.py", line 241, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\report\models\report.py", line 152, in render
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\.\openerp\api.py", line 241, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_ui_view.py", line 1029, in render
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\.\openerp\api.py", line 241, in wrapper
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 261, in render
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 300, in render_node
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 321, in render_element
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 298, in render_node
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 436, in render_tag_call
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 321, in render_element
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 298, in render_node
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 422, in render_tag_foreach
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 321, in render_element
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 298, in render_node
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 436, in render_tag_call
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 321, in render_element
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 300, in render_node
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 321, in render_element
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 300, in render_node
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 321, in render_element
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 300, in render_node
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 321, in render_element
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 298, in render_node
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 422, in render_tag_foreach
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 321, in render_element
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 300, in render_node
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 321, in render_element
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 298, in render_node
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 373, in render_tag_esc
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 992, in format
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 989, in _format
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 213, in eval_str
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 205, in eval
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 202, in eval
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\openerp\addons\base\ir\ir_qweb.py", line 88, in safe_eval
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\.\openerp\tools\safe_eval.py", line 314, in safe_eval
  File "", line 1, in <module>
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\.\openerp\report\report_sxw.py", line 219, in formatLang
  File "C:\Program Files (x86)\Odoo 8.0-20150523\server\.\openerp\report\report_sxw.py", line 174, in _get_lang_dict
QWebException: "global name 'lang_obj' is not defined" while evaluating
'formatLang(p.amount, currency_obj=o.company_id.currency_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

2 follower(s)

Stats

Asked: 6/1/15, 9:37 AM
Seen: 662 times
Last updated: 6/1/15, 10:02 AM