[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:
ARA (OpenERP) 2011-03-10 15:24:32 +05:30
parent 418a1beffd
commit b62f16753d
1 changed files with 2 additions and 2 deletions

View File

@ -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