projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba5f0e7
)
[FIX]hr_recruitment: fix onchange_job user_id referenced before assignment
author
Cedric Snauwaert
<csn@openerp.com>
Wed, 9 Jul 2014 09:15:19 +0000
(11:15 +0200)
committer
Cedric Snauwaert
<csn@openerp.com>
Wed, 9 Jul 2014 11:40:21 +0000
(13:40 +0200)
addons/hr_recruitment/hr_recruitment.py
patch
|
blob
|
history
diff --git
a/addons/hr_recruitment/hr_recruitment.py
b/addons/hr_recruitment/hr_recruitment.py
index
7df4e73
..
4908532
100644
(file)
--- a/
addons/hr_recruitment/hr_recruitment.py
+++ b/
addons/hr_recruitment/hr_recruitment.py
@@
-253,6
+253,7
@@
class hr_applicant(osv.Model):
def onchange_job(self, cr, uid, ids, job_id=False, context=None):
department_id = False
+ user_id = False
if job_id:
job_record = self.pool.get('hr.job').browse(cr, uid, job_id, context=context)
department_id = job_record and job_record.department_id and job_record.department_id.id or False