| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Employee Contracts (hr_contract)
• Employees (hr) • Discuss (mail) |
| Lines of code | 106 |
| Technical Name |
hr_contract_no_end_date_alert |
| License | LGPL-3 |
| Website | https://github.com/haythamafify |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Employee Contracts (hr_contract)
• Employees (hr) • Discuss (mail) |
| Lines of code | 106 |
| Technical Name |
hr_contract_no_end_date_alert |
| License | LGPL-3 |
| Website | https://github.com/haythamafify |
HR Contract No End Date Alert
Prevent accidental open-ended employee contracts with a save confirmation popup, automatic Chatter tracking, and a dedicated filter to review contracts without an end date.
Why This Module
This module helps HR teams avoid saving contracts without an end date by mistake, while still allowing that workflow when it is intentionally needed.
- Save confirmation popup when the End Date field is empty.
- Automatic Chatter log to document the decision.
- Quick search filter for contracts without an end date.
- Visual highlighting of the missing End Date field.
- Translation-ready with Arabic and English support.
Highlights
Safe Save Flow
Users must confirm before saving an open-ended contract.
Audit Visibility
Every approved exception can be reviewed later in Chatter.
No Extra Setup
Install and use it immediately with the standard HR contract flow.
Fast Review
Managers can filter and inspect all open-ended contracts quickly.
How It Works
Installation
Standard Odoo installation steps are enough.
- Copy the module into your custom addons path.
- Restart the Odoo server.
- Update Apps List from the Apps menu.
- Search for HR Contract No End Date Alert.
- Install the module and open any employee contract.
Module Structure
Focused implementation across Python, XML, JavaScript, and translations.
| File | Purpose |
|---|---|
| models/hr_contract.py | Adds the tracking field and posts Chatter messages for contracts saved without an end date. |
| views/hr_contract_views.xml | Updates the contract form and adds the search filter for contracts without an end date. |
| static/src/js/hr_contract_form.js | Intercepts save and shows the confirmation popup in the web client. |
| i18n/ar_001.po | Arabic translations for user-facing text. |
| static/description/index.html | HTML description used for the Odoo Apps Store page. |
Author & Support
Author: Haytham Afify
Email: haythamgamal6@gmail.com
GitHub: github.com/haythamafify
LinkedIn: linkedin.com/in/haytham-gamal-4165797a
Please log in to comment on this module