Skip to Content
Menu
This question has been flagged
4 Replies
12954 Views

If an employee would like to cancel an approved leave request, how can this be done? When log in as an administrator and try to delete the approved leave request I get the following message: Warning! You cannot delete a leave which is in validate state.

Avatar
Discard
Best Answer

Hi,

Leave request which is in Approved State is not allowed to delete. If you want to delete it, you need to set it in Draft/To Approve state by refusing it first, then reset it as New state. Then you can delete the leave request.

Avatar
Discard
Author Best Answer

I think the reason for why I could not refuse an approved leave request is because I had changed the “refuse” Activity in the workflow from function to dummy. I did this because I followed the following instructions for enabling email notifications:

Next step is you want to call these server actions from workflow. Setting->Technical->Workflow->Workflow->hr.wkf.holidays confirm->server action->leave_request_manager validate->server action->leave_approval_manager refuse->server action->leave_refusal_manager(Kind:Dummy in Workflow)

See url below for the full instruction.

help.openerp.com/question/7362/openerp-7-sending-email-to-manager-when-employee-applies-a-leave/

The strange thing is that I am still not able refuse the original leave request even if I have changed the workflow back from “dummy” to “function”, however all new leave requests can be refused after it has been approved.

Could it be that the leave request that was approved while the “refuse” activity in the work flow was set dummy has inherent this information and therefore will not be impacted when changing the “refuse” activity back to function?

Avatar
Discard

Yes, this can be a possibile cause sometimes.