Odoo Internal Clock

A browser extension that displays a real-time clock showing the time youve worked in your Odoo instance. The clock syncs with Odoos 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 companys Odoo subdomain
let DOMAIN = "odoo.com"; // Your companys domain
let PREFIX = "/es/hr_attendance/"; // Your companys 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 youre checked in
  5. Updates the timer every second

Browser Compatibility

  • Chrome/Chromium-based browsers
  • Firefox
S
Description
No description provided
Readme 36 KiB
Languages
JavaScript 100%