Odoo Help


How to send an email, when leave request refused?

on 4/16/13, 8:52 AM 4,759 views

Employee and a manager. Employee send leave request to manager. But manager refuses the leave request. I want to send a mail, when manager refuse the leave.

Email Address:object.employee_id.work_email

Subject:Leave Refusal of [[object.employee_id.name]]

Message:Dear [[object.employee_id.name]] [[object.number_of_days_temp]] day(s) leave from '[[object.date_from]]' to '[[object.date_to]]' has been refused.

Thank You.

Call this server action in workflow of hr.wkf.holidays->refuse(Kind:Function)->server action

But is not sending, while the manager refuse the leave. How can i solve this issue?

On 4/16/13, 9:37 AM

Action name:leave_refusal_manager.


Action type:Email


Email Address: object.employee_id.work_email

Subject: Leave Refusal of [[object.employee_id.name]]

Message: Dear [[object.employee_id.name]]

[[object.number_of_days_temp]] day(s) leave from '[[object.date_from]]' to '[[object.date_to]]' has been refused.

Thank You.

Next step is you want to call these server actions from workflow.


refuse->server action->leave_refusal_manager(Kind:Dummy in Workflow)

Thus you can configure it

Is okay, I've figured this out :)

on 7/30/13, 1:43 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/16/13, 8:52 AM
Seen: 4759 times
Last updated: 9/26/17, 12:18 AM