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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
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?
Yes, this can be a possibile cause sometimes.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up