[MERGE] Merged the branch for the fix of hr_holidays

bzr revid: jvo@tinyerp.com-20110607172943-yltnxcyaphbt71d8
This commit is contained in:
Jay Vora (OpenERP)
2011-06-07 22:59:43 +05:30
+2 -2
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 res in record.linked_request_ids:
wf_service.trg_validate(uid, 'hr.holidays', res.id, 'cancel', cr)
return True