← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 727900] [NEW] can not change stage in hr recruitment

 

Public bug reported:

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

** Affects: openobject-addons
     Importance: Medium
     Assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3)
         Status: Confirmed

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/727900

Title:
  can not change stage in hr recruitment

Status in OpenERP Modules (addons):
  Confirmed

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



Follow ups

References