[IMP] hr_holidays:use the new ORM methods create_workflow, delete_workflow, redirect_workflow.
bzr revid: cha@tinyerp.com-20130130095903-6exhtm6uruk0ek30
This commit is contained in:
parent
830acb128d
commit
02a2c8574d
|
@ -304,10 +304,9 @@ class hr_holidays(osv.osv):
|
|||
'manager_id': False,
|
||||
'manager_id2': False,
|
||||
})
|
||||
wf_service = netsvc.LocalService("workflow")
|
||||
for id in ids:
|
||||
wf_service.trg_delete(uid, 'hr.holidays', id, cr)
|
||||
wf_service.trg_create(uid, 'hr.holidays', id, cr)
|
||||
self.delete_workflow(cr, uid, [id])
|
||||
self.create_workflow(cr, uid, [id])
|
||||
to_unlink = []
|
||||
for record in self.browse(cr, uid, ids, context=context):
|
||||
for record2 in record.linked_request_ids:
|
||||
|
|
Loading…
Reference in New Issue