[FIX] hr_holidays: Can not refuse leave if its category is by employee category
lp bug: https://launchpad.net/bugs/731795 fixed bzr revid: ara@tinyerp.com-20110310095432-s4q9ijdf21gp77sg
This commit is contained in:
parent
418a1beffd
commit
b62f16753d
|
@ -294,8 +294,8 @@ class hr_holidays(osv.osv):
|
|||
|
||||
# If a category that created several holidays, cancel all related
|
||||
wf_service = netsvc.LocalService("workflow")
|
||||
for id in record.linked_request_ids or []:
|
||||
wf_service.trg_validate(uid, 'hr.holidays', id, 'cancel', cr)
|
||||
for request in record.linked_request_ids or []:
|
||||
wf_service.trg_validate(uid, 'hr.holidays', request.id, 'cancel', cr)
|
||||
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue