| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Attendances (hr_attendance)
• Time Off (hr_holidays) • Employees (hr) • Discuss (mail) • Calendar (calendar) |
| Lines of code | 510 |
| Technical Name |
auto_lunch_attendance |
| License | LGPL-3 |
| Website | https://www.mobile-lab.org |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Attendances (hr_attendance)
• Time Off (hr_holidays) • Employees (hr) • Discuss (mail) • Calendar (calendar) |
| Lines of code | 510 |
| Technical Name |
auto_lunch_attendance |
| License | LGPL-3 |
| Website | https://www.mobile-lab.org |
Auto Lunch Attendance
Automatically clock employees out for lunch and back in again — zero manual effort, fully configurable per company.
How It Works
Employee Clocks In
Employee checks in as normal through any Odoo channel (Kiosk, Portal, Mobile).
Cron Monitors Hours
A scheduled job runs every 5 minutes and tracks each employee's continuous work time.
Lunch Break Triggered
Once the configured threshold is reached (e.g. 4 h), the employee is automatically clocked out.
Auto Clock Back In
After the configured break duration (e.g. 1 h) the employee is automatically clocked back in.
Respects Leave & Schedule
Leaves and working schedules are checked — no action taken during absences or off-hours.
Key Features
Fully Configurable
Set the work-hours threshold and lunch duration per company in the HR Settings page.
Scheduled Cron
Runs automatically every 5 minutes — no admin interaction required after initial setup.
Leave Aware
Checks approved leaves before acting — employees on leave are never touched.
Schedule Aware
Respects each employee's resource calendar — no action outside working hours.
Clean Audit Trail
Auto-generated attendance records are clearly distinguishable from manual entries.
Multi-Company
Each company can have different lunch rules — perfect for multi-entity Odoo instances.
Screenshots
Auto Lunch Configuration
⏱ Scheduled Job Active
Cron: Auto Lunch Attendance Check — runs every 5 minutes
▲ Simple configuration panel in HR Settings — no technical knowledge required.
Daily Attendance — Jane Smith
| Check In | Check Out | Duration | Type |
|---|---|---|---|
| 08:00 AM | 12:00 PM | 4 h 00 m | Work |
| 12:00 PM | 01:00 PM | 1 h 00 m | Auto Lunch |
| 01:00 PM | 05:15 PM | 4 h 15 m | Work |
▲ Auto-generated lunch break clearly labelled in the attendance log.
Automatic Day Breakdown
▲ Clean visual breakdown of work vs auto-lunch time.
Requirements & Compatibility
Odoo Version
Odoo 19.0 Community or Enterprise
Dependencies
hr_attendance, hr_holidays, resource
Cron Required
Odoo scheduled actions (ir.cron) must be enabled on the server
Python
Python 3.10+ (standard Odoo 19 requirement)
Pricing
- Lifetime access — no subscription
- All future minor updates included
- Email support via mobile-lab.org
- LGPL-3 open-source licence
- Source code fully included
Please log in to comment on this module