| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Time Off (hr_holidays)
• Calendar (calendar) • Employees (hr) • Discuss (mail) |
| Lines of code | 167 |
| Technical Name |
no_sandwich_leave |
| License | OPL-1 |
| Website | https://www.oudayet.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Time Off (hr_holidays)
• Calendar (calendar) • Employees (hr) • Discuss (mail) |
| Lines of code | 167 |
| Technical Name |
no_sandwich_leave |
| License | OPL-1 |
| Website | https://www.oudayet.com |
Sandwich Leave Detection
Spot leaves that bundle a weekend into the break.
Auto-flag bridging requests · Form, list, kanban & search · Optional balance deduction
Odoo 19 $24.99 · OPL-1 For HR Managers 9 LanguagesOne day off, three days gone.
Friday-only leaves with a Monday return are how a single PTO day quietly becomes a four-day weekend. Native Odoo treats them like any other request — HR has no way to spot the pattern, let alone push back on the deducted balance.
Without this module
A Friday leave deducts 1 day. The same Friday + Monday leave deducts 2 days. The fact that the employee bridged a weekend in either case is invisible — HR can't audit, can't deduct, can't even see the pattern.
With this module
Every bridging leave gets an orange "Sandwich Leave" ribbon, a list-view filter, and an optional balance toggle. HR sees the pattern, audits the count, and chooses whether to deduct the bridged days.
See it in action
Real leave requests, the ribbon on the form, the audit total on the list.
Orange ribbon on the form. Any leave that abuts a weekend or non-working block with a working day on the far side gets the warning ribbon — spotted before HR even scrolls.
Sandwich and bridged-days columns in the list. Sortable, filterable, and the row decoration turns warning-yellow on every match so they pop without a second look.
One-click filter. A built-in «Sandwich Leaves» filter in the standard time-off search — one click narrows the queue to every bridging request, sortable by date, employee or department.
Optional balance deduction. A single HR-settings toggle. Off by default — the ribbon is informational only. Flip it on and the bridged non-working days are added to the deducted balance.
Audit-friendly group-by. Group the queue by «Sandwich» and Odoo sums the bridged-days column per group. The total reclaimed across the month, in one line, before opening a single record.
What it does
Every hr.leave request is scanned on save. If it abuts a non-working block (weekend, public holiday) with a working day on the far side, it's flagged.
An orange "Sandwich Leave" ribbon appears on the leave form whenever the flag is true. Tooltip explains exactly what triggered it.
A "Sandwich Leaves" filter and a group-by appear in the standard time-off search. Pull up the month's sandwich requests in one click.
Each sandwich leave records exactly how many non-working days it bridges. Audit-ready, exposed as a sortable column.
A single HR-settings toggle. When on, the bridged non-working days are added to the deducted leave balance. When off (default), the flag is informational only.
Uses the employee's resource.calendar, so a 4-day-week schedule, a non-Western workweek, or a public-holiday block all count correctly.
Available in 9 Languages
The detection speaks your team’s language. Each user sees button labels, the form ribbon and search filters in their own Odoo language setting — no extra setup.
Translation files live under i18n/. Regional variants (fr_BE, nl_BE) inherit from the base language.
Technical Details
| Odoo Version | 19.0 Community + Enterprise |
| License | OPL-1 — $24.99 USD |
| Dependencies | hr_holidays |
| Languages | EN, FR, ES, DE, NL, PT-BR, IT, ZH-CN, AR |
| External services | none — pure backend, no outbound calls |
Installation
1. Download from the Odoo App Store.
2. Extract to your Odoo addons directory.
3. Apps → Update Apps List → Install Sandwich Leave Detection.
4. (Optional) Settings → Employees → Deduct Bridged Days From Balance to enable the deduction.
Found a bug?
Reach out via the Odoo App Store contact form.
Sandwich Leave Detection — $24.99 — Odoo 19
© Naim OUDAYET — OPL-1
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module