Odoo 19 app

Hikvision Attendance

Hikvision attendance in Odoo, read from your HikCentral server

What it does

Your Hikvision face, card and fingerprint terminals already report to HikCentral Professional. This module asks HikCentral for those access events every few minutes and turns them into Odoo attendances, with each scan tied to the right employee.

In HikCentral you create an OpenAPI partner and get an AppKey and an AppSecret. You type those into Odoo once. Every request Odoo sends is signed with HMAC-SHA256 the way the HikCentral OpenAPI guide describes, so the secret itself never travels over the wire. Test Connection asks the server for its version and counts the access control devices, so you know straight away whether the keys and the network are right.

Odoo then reads the access points and the persons. A person whose person code matches an employee Badge ID (or identification number, or a card number) is linked on the spot. The rest show up in yellow in a mapping list where you pick the employee by hand. Going the other way, you can push employees to HikCentral with their photo, so the face terminals know them.

On a schedule (every 15 minutes by default) Odoo asks for the access-granted events since the last pull, page by page and 30 days at most per search, as the API requires. Each event ID is stored, so running the same window twice never creates a second attendance. The check-in and check-out come from the in/out type the terminal sends (check-in, check-out, break, overtime). When a terminal sends none, scans toggle in and out. You can also mark a door as entry-only or exit-only.