'Rebind the workflow instance bound to the given \'old\' record IDs to
the given \'new\' IDs. (``old_new_ids`` is a list of pairs ``(old, new)``.'

@api.model
def redirect_workflow(self, old_new_ids):

    from odoo import workflow
    for (old_id, new_id) in old_new_ids:
        workflow.trg_redirect(self._uid, self._name, old_id, new_id, self._cr)
    self.invalidate_cache()
    return True
