Skip to main content
Odoo 20 Attendance Geofencing: What GPS Tracking Does—and Does Not—Enforce
12 min read
Odoo

Odoo 20 Attendance Geofencing: What GPS Tracking Does—and Does Not—Enforce

Does Odoo 20 block check-ins outside a worksite? Compare native attendance, GPS records, kiosks, geofence enforcement, and safe mobile integration.

Odoo 20 has a native Attendances app with kiosks, employee check-in and check-out, reporting, and geolocation-related capabilities. But recording where a check-in happened is not the same as refusing a check-in that happens outside an approved workplace. If your policy is “employees may clock in only within 100 metres of their assigned site,” you need to verify that the exact restriction is enforced by your chosen Odoo configuration, module, or mobile integration—particularly on the server.

That distinction matters for construction crews, nurses, delivery teams, cleaning companies, retailers with multiple branches, and any organization whose employees work away from a single office. A location marker can help a manager investigate an attendance event. A geofence is an operational rule that changes whether the event is accepted.

Odoo's 20.0 Attendances documentation documents core modes and access rights; its 20.0 geolocation documentation explicitly includes checking employee attendance locations. Neither documentation should be treated as proof that every Odoo 20 deployment automatically blocks out-of-area punches.

GPS location and geofence enforcement solve different problems

Geolocation answers a question about evidence: where did the device report that it was? An attendance record might include coordinates and other device or network information, subject to supported settings, permissions and the check-in method.

Geofencing answers a question about policy: was this employee allowed to check in at this particular place, at this time, for this shift? A geofence typically compares a location reading with an authorized zone such as an office, branch, job site or customer address. The enforcement decision must also account for who the employee is, whether the site assignment is valid and what happens when location cannot be obtained.

A useful distinction is:

RequirementLocation captureGeofence enforcement
Show where a punch originatedPrimary purposeOften included as evidence
Stop a punch outside an approved radiusNot inherentlyYes, if explicitly implemented
Support assigned branches and temporary sitesReporting contextBusiness-rule input
Handle missing or low-accuracy coordinatesShow missing/uncertain evidenceApply a documented allow, deny or exception policy
Prevent bypass through a different client/APINot applicableRequires server-side validation on every authorized write path

The Geolocation API is browser- and permission-dependent. An available coordinate is not cryptographic proof of a person's identity or presence. Treat it as one signal in a controlled attendance workflow, not as perfect anti-fraud technology.

What Odoo 20 provides natively

The Attendances app and backend check-in

Odoo Attendances is a time clock: users can check in and out, managers can review attendance hours, and configured rights determine who can manage records. In the 20.0 settings, Attendances from Backend governs whether users can check in and out directly from the database rather than through a kiosk. Odoo also documents optional automatic checkout, absence management, extra-hour tolerances and extra-hour approval settings. These are valuable without any custom geofence. See Odoo 20 Attendances.

Those settings are not themselves a site-radius policy. For example, automatic checkout after a configured tolerance addresses forgotten departures, not unauthorized locations.

Kiosk mode, badges, RFID and PINs

A fixed workplace often needs less customization than a mobile field operation. A shared kiosk can run on an appropriate browser device, and Odoo's documentation describes manual employee selection, badge scanning, RFID and optional employee PIN identification. A kiosk session is a separate attendance surface; it does not require every employee to open a full-featured ERP interface. Read the Odoo 20 kiosk guide and hardware guide.

Kiosks can be a good fit for a warehouse entrance, front desk, clinic or workshop where the terminal is managed and physically located on site. They have their own threat model: protect and rotate kiosk URLs when necessary, control physical access to devices and consider whether manual selection needs a PIN. A name selected on a shared screen is not equivalent to strong identity verification.

Geolocation integration and attendance evidence

Odoo 20's general geolocation documentation says location data can help check employees' check-in and check-out locations. It documents integration choices for geolocating contacts and places and notes that some mapping services may incur charges. That is an important native capability, but it is not documentation of an automatically enforced company-zone perimeter. In the 20.0 source, attendance location capture depends on the company-level Device & Location Tracking setting in Attendances, which is off by default; when the browser supplies no GPS coordinates, Odoo falls back to an IP-based location. The standard hr_attendance module contains no radius or zone check. Odoo 20 Geolocation.

Before buying anything, inspect a staging database with the installed edition, apps, enabled settings and actual check-in interface your staff will use. Test which fields are populated and whether an out-of-area attempt is accepted. Features can differ by workflow and deployed customizations; do not infer enforcement solely because a map, IP address or coordinate is visible.

When does a company actually need a geofence?

Consider three practical cases.

Single warehouse, fixed shifts. A managed kiosk with badges or PINs may be simpler than asking every employee to turn on phone location. Test the kiosk's placement, attendance identity controls, shift and manager-correction workflow. A GPS perimeter may add little value when attendance happens at a secured entrance.

Multiple retail branches. Employees may be assigned to different branches on different days. A geofence can help enforce the assignment if it checks the correct site for the current shift and accepts authorized transfers. A single hard-coded office coordinate is likely to reject legitimate workers.

Mobile field teams. A technician may check in at a rotating customer location, a nurse at a patient visit or a supervisor at a temporary construction site. This needs assignment-aware rules, often a mobile-first experience and an explicit exception path for poor positioning or legitimate remote work. Merely showing the device on a map after the event is insufficient.

These are business-design examples, not claims that Odoo 20 provides every workflow out of the box.

The minimum design of a trustworthy geofence

A practical field-attendance rule begins with authoritative assignments and ends with an authoritative attendance result:

text
Employee authenticates
    → server resolves employee, company, shift and permitted sites
    → client requests location with permission
    → client sends coordinates, accuracy and an action identifier
    → server validates access and the current site policy
    → server records accepted attendance or a reviewable exception
    → client displays the server-confirmed result

This is illustrative architecture, not a built-in Odoo 20 endpoint, installed module or validated implementation.

1. Resolve the permitted work location on the server

The employee's selected site is a request, not an authorization. A backend should determine permitted sites from company, employee and roster data. For a branch manager working across sites, the policy might allow several locations. For a dispatched field worker, it might permit the assigned customer visit within a defined time window.

The server should reject cross-company leakage and unauthorized site substitution. The same rule must be applied to normal check-in, check-out, API routes, and any manager override endpoints that can create or edit attendance data.

2. Design a radius for real devices, not an ideal map

A latitude/longitude point and a radius in metres make a circle. But a phone reports a location estimate, often with an accuracy value. Inside shopping malls, between tall buildings and in basements, readings can be poor. Setting an arbitrarily tiny radius may create more support tickets than security.

For example, a workplace could pilot a 100 m radius, then compare actual device readings at entrances, nearby roads and adjoining buildings. That is an illustrative pilot value, not an Odoo default or a universally recommended distance.

A defensible policy records the approved radius, handles borderline locations, rejects stale readings and lets an authorized HR reviewer resolve exceptions. The location reading's uncertainty matters: if accuracy is 150 m, a nominal point 20 m inside the fence should not automatically be treated as reliable proof of presence.

3. Enforce at the write boundary

A mobile app may disable the “Check in” button while the employee is too far away. That improves usability, but it cannot be the only check. A modified client or alternate endpoint might skip the button entirely.

The backend must enforce the same policy before accepting an attendance transaction, under the authenticated employee and company context. Log the decision and the rule version, not just a generic success flag.

Do not advertise location checks as impossible to spoof. A client can provide inaccurate or manipulated readings. A stronger setup may combine location with a managed device, supervisor review, roster constraints or a physical kiosk where operationally justified.

4. Make remote work and exception handling explicit

Legitimate exceptions are predictable: travel, approved home working, emergency visits, missing signal, malfunctioning devices and temporary transfers. Define who can grant them and how they are audited.

Avoid a universal “disable geofence” switch that silently weakens policy for everyone. Prefer specific exemptions scoped by employee, date, site or approved work arrangement, and show managers why an event was accepted or rejected.

Which implementation route should you choose?

Option A: Standard Odoo Attendances and kiosks

Choose this when your main problem is reliable clock-in/out at fixed workplaces. Configure native modes, identity checks, overtime and manager permissions first. Add technical complexity only after an acceptance test proves a real gap.

Option B: A focused Odoo geofencing module

A custom module can extend attendance writes with allowed-site and radius logic, audit events and an exception review screen. This makes sense when the ERP must enforce location consistently across more than one client. Review record rules, company isolation, timezone behavior and upgrade compatibility. Do not assume that an Odoo 19 add-on is compatible with version 20 simply because the app names look similar.

The hosting model matters: Odoo's 20.0 custom-database upgrade guide notes that Odoo Online does not permit installing custom modules containing Python files. A Python-backed attendance policy generally requires a supported hosting path such as Odoo.sh or on-premises deployment, subject to compatibility and licensing.

Option C: A dedicated employee or field-service app connected to Odoo

Use a mobile app when employees need more than a punch: assigned jobs, leave, break tracking, task checklists, photo evidence, manager approvals and Arabic/English interfaces. The app should be a client of your attendance rules, not a parallel HR system that writes unreviewed records. For one client, Octivex built a cross-platform app that validates clock-in and clock-out against a site geofence of roughly ±50 metres and writes straight into Odoo HR; see the geofenced attendance case study.

For a concrete example, Octivex's own Hala HR is a private-beta employee app with company-defined zones, server-side checks and individual remote-work exemptions. Its server half currently ships as an Odoo 19 add-on; Odoo 20 support is not yet announced, so confirm version and hosting compatibility before planning a deployment.

Where intermittent connectivity is a requirement, also read Flutter Offline-First Apps for Odoo. A phone capturing a pending check-in offline and Odoo accepting that attendance later are different events. If your policy requires real-time proof of location, make that limitation visible rather than falsely reporting a confirmed clock-in.

What about Odoo employee licensing?

Do not conflate an employee record, an ERP user, and a kiosk employee. Odoo 20 Attendances documents different access paths, and the commercial consequences depend on your subscription and setup. A kiosk can reduce the need for full-featured ERP access for employees who only clock in and out, but it is not a blanket promise that every mobile portal or third-party integration avoids user licensing.

For the separate licensing question, see Octivex's Odoo 20 light-user pricing guide. Confirm the current commercial contract with Odoo before designing a workaround around assumptions about seat counts.

Privacy and security are part of the attendance feature

Location data can reveal sensitive patterns about people's movements. Explain what is collected, why it is necessary, who can see it and when it is deleted. Prefer capturing only what the attendance workflow needs, not persistent background location tracking by default.

The browser Geolocation API requires a secure context and location permission. If a user refuses permission or a device cannot determine location, the system needs a documented response—not a silent fallback that invents coordinates or quietly accepts the punch.

Restrict access to attendance and location records by role, company and employee. Give employees a clear way to dispute or correct a record. Assess applicable employment and privacy requirements in each country with appropriate advisers; a GPS setting does not by itself establish legal compliance.

Acceptance tests before a payroll-relevant rollout

A good implementation is tested against unexpected cases, not only a phone held inside the office.

TestExpected behavior
Authorized employee checks in clearly inside assigned zoneOne accepted attendance event with server confirmation
Employee checks in clearly outside all permitted zonesDenial or documented exception, according to policy
Borderline reading has poor reported accuracyReview or controlled fallback, not false certainty
Employee is temporarily assigned to another branchToday's approved assignment, not yesterday's site, controls
Employee denies location permissionClear message and legitimate exception path
Device location is stale or unavailableNo fabricated coordinates; documented outcome
Client submits another employee's ID or site IDServer resolves actor and permissions independently
Mobile UI is bypassed using a direct API callSame server rule applies
Two quick taps or a network retry occurOne logical attendance action, no duplicate open entries
HR applies an approved remote-work exemptionExemption is scoped and auditable
Manager changes employee site mid-shiftPolicy follows a documented effective-time rule
Kiosk URL is exposed or device is lostOperator can rotate/revoke access according to deployment procedure
Employee switches company contextNo leakage or cross-company attendance records
Check-in starts offline and reconnects laterPending state stays distinct from accepted state
HR corrects an erroneous eventActor, reason and before/after changes remain reviewable

The tests require an Odoo 20 staging environment with representative devices and actual configured policies. They are acceptance criteria, not tests performed for this article.

The practical decision

Start with the actual business rule: Are you trying to record where a punch occurred, or prevent a punch unless it meets a site policy? The first may be addressed by native Odoo attendance and geolocation capabilities. The second needs a deliberate enforcement architecture with site assignments, accuracy policy, secure validation, exceptions and auditability.

For a single managed location, a native kiosk may be enough. For many moving work sites, a mobile app plus server-enforced attendance policy may fit better. For mixed environments, combining both under one source of truth is often simpler than forcing every worker through the same interface.

Octivex Tech's Odoo and mobile engineering team can help assess the existing attendance flow and design the smallest implementation that can be tested, operated and upgraded safely.