OdooWiki OCA HUB

Mail Notify Employee Leave

mail_notify_employee_leave folder_open OCA/mail open_in_new
Uncategorised License: AGPL-3

This module automatically notifies users when they mention or assign a colleague who is out of office. The notification includes the expected return date of the absent user and is sent only once per day per user.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

When you mention or assign a colleague who is out of office, Odoo sends you a note telling you they are absent and when they are expected back. Each user is warned only once per day per absent employee.

This module adds an automatic warning in Odoo's messaging system. When a message is sent and a colleague who is currently on leave is among the people mentioned or assigned, Odoo posts a short note to you saying that the person is out of office and giving their expected return date.

  • The note is sent only to the user who triggered the message, not to everyone.
  • The same user is not warned again about the same absent colleague on the same day; the warning resets the next day.
  • Approving a leave request does not trigger these absence warnings, so the leave approval flow stays clean.

On the employee record, two read-only fields keep track of this: the date of the last absence notification and the list of users already notified that day. These are used internally to avoid repeating the message.

The module works together with the Discuss/messaging features and the Time Off (Leave) app. It extends the employee, leave and messaging models, but it does not add any new menu, screen or report of its own.

Depends on

mailhr_holidays
Models and fields (1)
  • hr.employee · extends an existing modelabsence_notified_date (Date of Last Absence Notification), absence_notified_user_ids (Users Notified Today)

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

To trigger the out-of-office notification:

  • An employee must have an approved leave covering today's date. This sets the employee's Is Absent field automatically.
  • The employee must be linked to an Odoo user.
  • Send any message that includes employee's partner in the recipients, for example, by mentioning them with @name.

When these conditions are met, the sender receives an internal note with the expected return date of the absent employee, calculated as the first working day after the leave ends based on the employee's working schedule and public holidays.

The notification is sent at most once per user per day per employee. Sending further messages to the same absent employee on the same day will not produce additional notifications.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.