Attendances - Odoo 20 Community Book

Settings: Turning On the Features

Open Attendances > Configuration > Settings. The page has two blocks. Most of the options are company settings, and a small building icon next to the name says so. If you work with several companies, each company has its own choice. Click Save at the top left after a change.

Attendance Rules and Enforcement

odoo Development

Attendance Validation. When it is on, attendances must be validated by an officer before they count toward the work entries and the time rules. There are three choices. Worked days are automatically approved (the choice in the picture): every attendance is Validated at once. Worked days require manual approval: every attendance waits as a draft until an officer validates it. Worked days require approval if outside tolerance: only the attendances that are outside the work schedule by more than the tolerance wait for approval. Section 1.3 shows the manual approval choice.

Automatic Check-Out. Odoo checks people out by itself, for the people who forgot, based on their working schedule with an extra tolerance, or at a given time each day. It does not apply to employees with a flexible working schedule. Section 1.3 shows it at work.

Absence Management. When it is on, the days that are not covered by an attendance show in the report (the Time Off Ledger, section 7.2). It does not apply to employees with a flexible working schedule. Section 1.3 shows it.

Attendances from Backend. Allows users to check in and out from Odoo itself, not only at the kiosk. It is ticked in the picture.

Device and Location Tracking. Allows Odoo to collect the GPS location, the IP address and the browser details of each check in. These show in the Logs tab of the attendance (section 5.1). Section 1.3 shows it.

Take Pictures on Check-In. Takes a photo with the camera of the device at the time of check in, when a camera is available. The images are made smaller to save space.

Break Management on Checkout. When it is on, an employee can write the length of the break after checking out. The field Break Duration of the attendance (section 5.1) holds it. Section 3.3.2 shows it at the kiosk.

Attendance Work Entry Type. The type of work entry that is given to the attendances by default. It is Work in the picture. Payroll and the time rules read it.

Some options show more choices after you tick them.

odoo Development

Automatic Check-Out, Based on. Tolerance (the number of hours after the end of the working time, 2.00 hours by default) or Specific Time (a clock time each day, 8:00 PM by default).

Single Check-In Attendance System. When it is on, only the first check in within the scheduled working hours, with the tolerance, is recorded. Another check in is allowed only after an automatic check out. It belongs to the automatic check out.

Tolerance (approval if outside tolerance). The number of hours of margin that Odoo allows around the schedule before an attendance needs an approval. It starts at 0.00 hours.

Kiosk Settings

odoo Development

Kiosk Mode. How a person is identified at the kiosk. Barcode / RFID: the person scans a badge or a token. Barcode / RFID and Manual Selection: the person scans a badge or picks his or her own name on the screen (the choice in the picture). Manual Selection: only the picture of the names. A link, Installation Manual, opens the documentation.

Display Time. How long the greeting message stays on the screen after a check in or check out. It is 10 seconds here.

Barcode Source. The camera used to scan a barcode: Front Camera here.

Attendance Kiosk Url. The web address of the kiosk. Open it on any device (a tablet at the door, for instance), and the device becomes a kiosk. Click the small icon next to it to copy the address, and Generate new URL to make a new address. The old one stops working, so use it when a tablet is lost.

Employee PIN Identification. Lets people check in with the PIN written on the Settings tab of their employee card. Section 3.3.1 shows it.

What Happens When the Rules Are On

Here the page is saved with these choices: Worked days require manual approval, Automatic Check-Out (tolerance 2 hours), Absence Management, Device and Location Tracking and Break Management on Checkout. The next lines show what each one does.

odoo Development

Manual approval. An attendance made from the top bar now gets the status Draft. The earlier ones stay Validated. The list shows both.

odoo Development

Open the draft. The form has the buttons Validate and Refuse, and the status bar Draft > Validated. Click Validate and the status changes to Validated. Only Refuse is left.

odoo Development

Device and location tracking. The form got a Logs tab (shown above) with the mode (Systray), the IP address (127.0.0.1) and the browser (chrome) for the check in and the check out, and the location with the GPS coordinates and a View on Maps link. When the browser gives no location, the coordinates are 0.0000000, and the Odoo top bar first asks: Unable to get a valid location. Do you want to proceed with your check-in/out anyway? Click Proceed Anyway to go on.

odoo Development

At the kiosk the same wait happens without a question. After a click on check-in, the page can stay the same for about ten seconds before the welcome page comes. If you see this, wait: the kiosk is waiting for the location. With device tracking off, the check in is immediate.

Automatic check-out. Sam Carter has a check in on Nov 11 at 9:00 AM and no check out. Odoo closes it by itself: the check out is 7:00 PM, the mode of the check out is Automatic Check-Out, and OdooBot writes a note in the chatter, saying that the attendance was automatically checked out because the employee exceeded the allowed time for the scheduled work hours. The job that does this is the scheduled action Attendance: Automatically check-out employees.

odoo Development

Absence management. When it is on, Odoo has the scheduled action Attendance: Detect Absences for employees. The Time Off Ledger (section 7.2) lists the days without attendance.

WhatsApp