[FIX] hr_holidays: on change holiday type to employee tag, set employee to False.
Otherwise, the user who creates the allocation request by employee tag will benefit of the leaves he just entered, twice if he has the employee tag, once if has not the employee tag(and in this last case, he should not have this leave allocation, as he do not have the tag bzr revid: dle@openerp.com-20131211180025-pg8kf13bt6d1vk9l
This commit is contained in:
parent
942a10f2b3
commit
291bc4a69d
|
@ -242,6 +242,10 @@ class hr_holidays(osv.osv):
|
|||
result['value'] = {
|
||||
'employee_id': ids_employee[0]
|
||||
}
|
||||
elif holiday_type != 'employee':
|
||||
result['value'] = {
|
||||
'employee_id': False
|
||||
}
|
||||
return result
|
||||
|
||||
def onchange_employee(self, cr, uid, ids, employee_id):
|
||||
|
|
Loading…
Reference in New Issue