can not change stage in hr recruitment

Bug #727900 reported by Aline (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 3

Bug Description

trunk, saas

in hr recruitment, stage are depending on department (each department can have different recruitment process). In applicant view, specify a department and change stage ok, but if you change the department, and then change satge again : bug

how to reproduce
- create 2 departments : dep1 and dep2 (from Human Resources/Configuration/Human Resources/Departments)
- create 3 stages for this 2 department (from) Human Resources/Configuration/Recruitment/Stages)
- create a new applicant (from Human Resources/Recruitment/Applicants)
- set the department to dep1
- change stage ok
- change department to dep2
- change stage : bug

Traceback (most recent call last):
  File "/home/aline/openerp/trunk/server/openerp/netsvc.py", line 410, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/aline/openerp/trunk/server/openerp/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/home/aline/openerp/trunk/server/openerp/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/aline/openerp/trunk/server/openerp/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/aline/openerp/trunk/server/openerp/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/aline/openerp/trunk/addons/hr_recruitment/hr_recruitment.py", line 218, in stage_next
    if st and len(stage_ids) != stage_ids.index(st)+1:
ValueError: list.index(x): x not in list

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

Hello Aline,

I have fixed the problem in lp:~openerp-dev/openobject-addons/trunk-bug-727900-ara branch, It will be merged soon with Trunk addons.

Revision ID: <email address hidden>
Revision No:4478

Thank you,
ara

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.