HR automation · 2026

HR system linking Microsoft 365, Odoo and attendance

HR worked across four systems that each had their own version of an employee: Microsoft 365 for email, Odoo for the ERP, a cloud attendance system for punches, and a time tracker. This dashboard keeps one record per person linked to all of them, and runs the daily attendance, leaves, letters and assets work from there.

Client
A company with offices in Saudi Arabia and Pakistan
Role
Design, build and running support
Stack
Python · Flask · Microsoft Graph · Odoo XML-RPC · Attendance REST API · Time Doctor API · WhatsApp (Green API) · PostgreSQL

Updated 2 Dec 2026

Discuss a similar systemWhatsAppLinkedIn

HR system linking Microsoft 365, Odoo and attendance — What the HR system covers: linked records, daily attendance, status write-back, letters, assets (illustration)

The problem

The same person was 'Ali Khan' in Microsoft 365, 'A. Khan' in Odoo and employee 1042 in the attendance system, so no report could be joined without a spreadsheet and a guess. Every morning HR opened the attendance system to see who was absent, then marked approved leave and work-from-home one person at a time. Warning letters sat in a mailbox, leave records in another sheet, and nobody had one list of which laptop or phone each person held.

What I built

A Flask dashboard that imports the staff lists from Microsoft 365 (Graph), Odoo and the attendance system, and keeps one employee record that points to each of them. Auto-link connects any record missing a link by matching email first and then a fuzzy name match, and creates nobody new; duplicates can be merged. The Attendance page loads a day from the attendance system and shows everyone on shift with check-in, check-out and late minutes, counted as present, absent, leave, work from home, swipe miss and late-in, filtered by office. HR selects people and applies a status (annual leave, sick leave, work from home, official visit) in bulk, and it is written back into the attendance system. Warning letters are found by scanning the HR mailbox and matched to the right employee from the subject. Each profile holds leaves and absents, assets issued, and documents. The original desktop bot that started it puts ERP activity next to time-tracker hours and idle time for a day and sends WhatsApp reminders from editable templates.

  • Employee directory: one record per person, linked to Microsoft 365, Odoo and attendance
  • Imports from each system; auto-link by email then fuzzy name; duplicate merge
  • Daily attendance: on shift, present, absent, leave, work from home, swipe miss, late-in, by office
  • Bulk status apply (leave, work from home, official visit) written back to the attendance system
  • Warning letters found in the HR mailbox and matched to the employee
  • Leaves and absents, assets issued and returned, documents per employee
  • Scheduled attendance reports by email per office
  • Work-time audit: ERP activity beside time-tracker hours and idle, WhatsApp reminders

Outcome

HR starts the day on one page: who is on shift, who is absent and why, with approved leave applied in a few clicks instead of person by person, and every employee's letters, leaves and equipment on one profile.

Screens

Click any screen to enlarge it. Arrow keys move between them.

  • What the HR system covers: linked records, daily attendance, status write-back, letters, assets (illustration)
  • Employee directory: one record per person with Microsoft 365, Odoo and attendance links, letters, leaves, absents and assets (demo data)
  • Daily attendance by office with present, absent, leave and late-in counts, and statuses applied back to the attendance system (demo data)

Want this for your company?

The engagement is described on the Business process automation service page: who it is for, what you get, how it runs, and the questions I get asked.

Have a process like this?

Send me the thing your team does by hand every week. I will tell you honestly whether it is worth automating, even when the answer is no.

Email meWhatsAppLinkedIn

Next case study →Flower Shop ERPPoint-of-sale, inventory, customers and profit & loss for a flower shop, in one zero-dependency Node app that runs on a shop PC and prints 78mm slips.

← Follow-ups from field sales visitsAll 21 case studies