[MERGE] Merged the branch for the fix of hr_holidays
bzr revid: jvo@tinyerp.com-20110607172943-yltnxcyaphbt71d8
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user