No description
  • JavaScript 100%
Find a file
2026-09-01 10:22:34 +02:00
.gitignore Initial commit 2026-06-18 13:54:11 +02:00
background.js Update background.js 2026-09-01 10:22:34 +02:00
example.config.js Simplified configuration file, fix for synchronization when checking out 2026-06-19 14:22:12 +02:00
manifest.json Initial commit 2026-06-18 13:54:11 +02:00
README.md Simplified configuration file, fix for synchronization when checking out 2026-06-19 14:22:12 +02:00
utils.js Simplified configuration file, fix for synchronization when checking out 2026-06-19 14:22:12 +02:00

Odoo Internal Clock

A browser extension that displays a real-time clock showing the time you’ve worked in your Odoo instance. The clock syncs with Odoo’s attendance system and updates as you work.

Features

  • Real-time clock: Displays hours, minutes, and seconds worked
  • Automatic synchronization: Pulls check-in status from Odoo
  • Tab visibility handling: Pauses timing when you switch tabs
  • Simple configuration: Easy setup with a config file

Requirements

  • An Odoo instance with HR Attendance module
  • Chrome or Firefox browser
  • Valid Odoo credentials

Setup

1. Clone the repository

git clone <repository-url>
cd odoo-internal-clock

2. Configure the extension

Create a config.js file in the extension directory (see example.config.js for reference):

let SCHEME = "https://";
let SUBDOMAIN = "my-company"; // Your company’s Odoo subdomain
let DOMAIN = "odoo.com"; // Your company’s domain
let PREFIX = "/es/hr_attendance/"; // Your company’s attendance URL path
let DEBUG = false; //set to true to enable debug logging

3. Load the extension

For Firefox:

  1. Go to about:debugging#/runtime/this-firefox in the address bar
  2. Click Load Temporary Add-on
  3. Select the manifest.json file from the extension directory

For Chrome:

  1. Go to chrome://extensions/ in the address bar
  2. Enable Developer mode (top right)
  3. Click Load unpacked
  4. Navigate to the extension directory and select it

How it works

Once loaded, the extension:

  1. Detects when Odoo loads
  2. Creates a visual clock in the taskbar
  3. Fetches your current check-in status
  4. Displays elapsed time if you’re checked in
  5. Updates the timer every second

Browser Compatibility

  • Chrome/Chromium-based browsers
  • Firefox