Skip to Content
Menu

Countdown Timer Widget

by
Odoo

35.02

v 18.0 Third Party
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 203
Technical Name eis_countdown_timer
LicenseOPL-1
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 203
Technical Name eis_countdown_timer
LicenseOPL-1
Company Logo
Odoo Community
Odoo Enterprise

Countdown Timer Widget

A highly customizable and accurate countdown/count-up timer widget for your Odoo form views.

Module Screenshot

Key Features

Multiple Field Types

Works out-of-the-box with datetime, date, integer, and float fields.

High Accuracy

Remains accurate even when the browser tab is inactive.

Extensive Customization

Control colors, size, icons, alignment, and more via XML options.

Advanced Behavior Control

Dictate if the timer stops at zero or crosses over into negative values.

Smart Visual Cues

A glowing animation highlights timers nearing their deadline.

Helpful Tooltip

Hover over the timer to see the original, unformatted value of the field.

90 Days of Free Support

Your purchase includes 90 days of free support for any questions, bug fixes, or installation help you may need. We are committed to ensuring you get the most out of our module.

Contact via Email Chat on WhatsApp

© 2025 Expert IT Solutions. All rights reserved.

Odoo is a registered trademark of Odoo S.A.

Countdown Timer Widget

This document provides a comprehensive guide on how to use and customize the Countdown Timer Widget in your Odoo 18 environment.

Overview

The Countdown Timer Widget is a powerful tool for adding real-time, self-updating timers to your Odoo form views. It is designed to be highly flexible, visually appealing, and accurate, providing immediate visual feedback on time-sensitive data. It works seamlessly with multiple data types and remains accurate even when the browser tab is inactive.

Key Features

  • Multiple Field Types: Works out-of-the-box with datetime, date, integer, and float fields.
  • High Accuracy: The timer logic is based on a fixed target timestamp, ensuring it always shows the correct time, even after a browser tab has been backgrounded.
  • Extensive Customization: Almost every visual aspect can be controlled directly from the XML view using the options attribute.
  • Advanced Behavior Control: Dictate whether the timer stops at zero or crosses over into negative values, and set limits on how far it can go.
  • Smart Visual Cues: An elegant glowing animation automatically highlights timers nearing their deadline, and a helpful tooltip provides extra detail on hover.
  • Responsive Display: The widget intelligently hides itself if the source field is empty, keeping your UI clean.

Installation

  1. Place the eis_countdown_timer module into your Odoo addons path.
  2. Navigate to the "Apps" menu in Odoo.
  3. Click on "Update Apps List".
  4. Search for "Countdown Timer Widget" and click "Install".

Usage

To use the widget, simply add widget="expertpktimer" to a supported field in your form view XML definition.

Basic Usage:

<field name="your_datetime_field" widget="expertpktimer"/>

How It Works with Different Field Types

  • datetime / date: The widget calculates the difference between the field's value and the current time. A future date will result in a positive countdown, while a past date will result in a negative count-up.
  • integer / float: The widget interprets the number as a duration in hours. It calculates a target datetime from "now + X hours" and starts the timer based on that target.

Customization via Options

All customization is handled through the options attribute on the field tag.

<field name="your_field" widget="expertpktimer" options="{'option_name': 'value', ...}"/>

Here is a complete list of available options:

Note

When passing boolean True in XML options, you must use the Python literal True, not the string 'true'. For example: 'allowCrossover': True.

Examples

Example 1: A simple SLA Timer

This timer will be center-aligned and will stop at 00:00:00 without going negative.

<field name="sla_deadline" widget="expertpktimer"
       options="{'alignment': 'center', 'inverseColors': True}"/>

Example 2: A Project Deadline Timer

This timer will be right-aligned, use custom colors and a "fire" icon for the negative state, will cross over to negative, but will stop counting after it has been negative for more than 48 hours.

<field name="project_deadline" widget="expertpktimer"
       options="{
           'alignment': 'right',
           'positiveColor': '#008784',
           'negativeColor': '#d9534f',
           'timerSize': '1.2em',
           'inverseColors': True,
           'negativeIcon': '🔥',
           'allowCrossover': True,
           'negativeThresholdHours': 48
       }"/>

Visual Features

"Nearing End" Animation

When a positive timer has less than 60 seconds remaining, it will automatically get a subtle, glowing pulse animation to draw the user's attention. This works best with the inverseColors: True option.

Tooltip

Hovering your mouse over the timer will display a tooltip showing the original, unformatted value of the field. * For datetime fields, it shows the full date and time (e.g., "August 4, 2025 at 10:00:00 AM"). * For integer fields, it shows the original value (e.g., "Original Value: 8 hours").

Support

For any questions, support, or customization requests, please contact Expert IT Solutions.

Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.