Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 110 |
Technical Name |
yc_timer_widget |
License | LGPL-3 |
Versions | 13.0 14.0 |

Odoo Timer Widget
This module allows users to displays the timer on form view based on the given start date and end date in the widget option. This module also allows users to call any python method when the time becomes 00:00:00.This module also allows you to perform real time scheduling.
Features
Displays the timer on form view.
Call any python method when the time becomes 00:00:00.
When the times out in timer then the widget returns an id of the record.
Allows you to perform real time scheduling.
Usage
For view file you just have to add below code:
<field name="time_left" widget="timer"
options="{'start_time': 'start_time_field', 'end_time': 'end_time_field', 'method': 'your_python_method_name'}"/>
For Calling method, add below code in python file:
def your_python_method_name(self, js_id):
rec = self.browse(int(js_id))
if rec:
// do anything here with record
When the times out in timer then the widget returns an id of the records.
<field name="time_left" widget="timer"
options="{'start_time': 'start_time_field', 'end_time': 'end_time_field', 'method': 'your_python_method_name'}"/>
def your_python_method_name(self, js_id):
rec = self.browse(int(js_id))
if rec:
// do anything here with record
Need Any Help?
If you have anything to share with us based on your use of this module, please let us know. We are ready to offer our support.
Email us
ycsolutions.in@gmail.com
Please log in to comment on this module