Search Here

Countdown Timer - Time Counter Custom Widget in Odoo

 In this article I am going to show you how to create countdown timer custom widget in Odoo8. To create time counter or countdown timer in Odoo we are going to use JavaScript.

How to Create Countdown Timer Custom Widget in Odoo

How to Create Countdown Timer Custom Widget in Odoo

Follow below steps to create timer widget:
  1. Create models|class to hold start_date, deadline_date and duration
  2. Create form view to show countdown timer
  3. Create JavaScript file for custom widget under static/src/js folder to show countdown timer

Create models|class to hold start_date, deadline_date and duration




Create form view to show countdown timer



Create JavaScript file for custom widget under static/src/js folder to show countdown timer


Post a Comment

5 Comments

  1. Thanks for de interesting widget. I try to implement but I can't, please you can to send me the code that the example. I have error on js file (I am not very familiar with odoo js). Please, thanks and I hope your answer.

    ReplyDelete
    Replies
    1. Thanks for ur comment, can u please share your code here

      Delete
  2. Replies
    1. I think the answer is no, Because Odoo14 uses different JS syntax

      Delete
    2. But you can use the same logic for latest versions of odoo

      Delete