← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 727900] Re: can not change stage in hr recruitment

 

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: ara@xxxxxxxxxxx-20110304064406-cbvwef86wu5kqph1
Revision No:4478 

Thank you,
ara

** Changed in: openobject-addons
       Status: In Progress => Fix Committed

-- 
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):
  Fix Committed

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



References