main
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:
- Go to
about:debugging#/runtime/this-firefoxin the address bar - Click Load Temporary Add-on
- Select the
manifest.jsonfile from the extension directory
For Chrome:
- Go to
chrome://extensions/in the address bar - Enable Developer mode (top right)
- Click Load unpacked
- Navigate to the extension directory and select it
How it works
Once loaded, the extension:
- Detects when Odoo loads
- Creates a visual clock in the taskbar
- Fetches your current check-in status
- Displays elapsed time if you’re checked in
- Updates the timer every second
Browser Compatibility
- Chrome/Chromium-based browsers
- Firefox
Description
Languages
JavaScript
100%