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

RuntimeError: maximum recursion depth exceeded in cmp

By
charlesraj
on 6/5/13, 7:47 AM 3,026 views

hi i installed the payroll module and indian payroll module in my db.first i set the contract(wage,allowance etc.) for the employee. Then create the payslip for that employee. Saving it then press the "confirm" button or "compute sheet" button both of them shows the same errors below.

OpenERP Server Error

Client Traceback (most recent call last):

File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\http.py", line 204, in dispatch
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\controllers\main.py", line 1140, in exec_workflow
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\session.py", line 148, in exec_workflow
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\session.py", line 31, in proxy_method
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\session.py", line 104, in send


Server Traceback (most recent call last):

File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\web\session.py", line 90, in send
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\netsvc.py", line 293, in dispatch_rpc
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\service\web_services.py", line 626, in dispatch
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\osv\osv.py", line 131, in wrapper
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\osv\osv.py", line 220, in exec_workflow
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\osv\osv.py", line 213, in exec_workflow_cr
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\osv\orm.py", line 3926, in _workflow_signal
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\workflow\wkf_service.py", line 119, in trg_validate
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\workflow\instance.py", line 43, in validate
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\workflow\workitem.py", line 60, in process
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\workflow\workitem.py", line 175, in _split_test
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\workflow\workitem.py", line 183, in _join_test
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\workflow\workitem.py", line 40, in create
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\workflow\workitem.py", line 52, in process
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\workflow\workitem.py", line 106, in _execute
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\workflow\wkf_expr.py", line 67, in execute
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\workflow\wkf_expr.py", line 57, in _eval_expr
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\tools\safe_eval.py", line 241, in safe_eval
  File "", line 1, in <module>
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\osv\orm.py", line 374, in function_proxy
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 334, in hr_verify_sheet
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 409, in compute_sheet
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 606, in get_payslip_lines
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\openerp\addons\hr_payroll\hr_payroll.py", line 494, in _sum_salary_rule_category

..
...
...
 File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\osv\orm.py", line 484, in __getattr__
  File "C:\Program Files\OpenERP 7.0-20130509-231040\Server\server\.\openerp\osv\orm.py", line 357, in __getitem__
RuntimeError: maximum recursion depth exceeded in cmp

please help me to finding out a solutions.....

0

Gustavo

--Gustavo--
950
| 2 1 4
Buenos Aires, Argentina
--Gustavo--

Python developer, big fan of sailing

Gustavo
On 6/5/13, 9:56 AM

There is a formula for calculating the payslip that is causing the recursion. Check that,

which formula?

Remya
on 6/5/13, 9:58 AM

I don't know the indian localization so I can't tell you which formula. You should do that yourself. If you can't do that, I would suggest contracting a consultant who understands how OpenERP works because the error you got into is not trivial and you will get into more problems like that in the near future.

Gustavo
on 6/5/13, 10:00 AM

Remya: How did you solved this error, getting the same error! help

evon_dun
on 11/13/13, 7:56 AM

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

0 follower(s)

Stats

Asked: 6/5/13, 7:47 AM
Seen: 3026 times
Last updated: 3/16/15, 8:10 AM