Timesheet Timer Auto-Stop (Scheduled Action)
by EBITDA SOLUTIONS LLP https://ebitdasolutions.com$ 38.69
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Employees (hr)
• Project (project) • Discuss (mail) |
| Lines of code | 480 |
| Technical Name |
timesheet_timer_autostop_cron |
| License | LGPL-3 |
| Website | https://ebitdasolutions.com |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Employees (hr)
• Project (project) • Discuss (mail) |
| Lines of code | 480 |
| Technical Name |
timesheet_timer_autostop_cron |
| License | LGPL-3 |
| Website | https://ebitdasolutions.com |
Timesheet Timer Auto-Stop
Stops running timesheet timers after a configured limit using a scheduled action for Odoo 19
Timesheet Timer Auto-Stop (Scheduled Action)
This module adds a Scheduled Action (cron) that automatically stops
running timesheet timers after a configured time limit. It searches
timer.timer records linked to account.analytic.line
(timesheet
lines); when elapsed time reaches the limit, it stops the timer via
action_timer_stop(). Configure the maximum run time using the system
parameter timesheet.timer_max_hours (default 8 hours). The cron
runs
every minute.
KEY HIGHLIGHTS
Scheduled Auto-Stop
A cron runs every minute to find running timesheet timers and automatically stops those that have exceeded the configured maximum run time.
Configurable Limit
Set the maximum timer run time via the system parameter timesheet.timer_max_hours (default 8 hours). Timers running longer are stopped by the cron.
Timesheet Integration
Works with timer.timer records linked to account.analytic.line.
Stops timers via the timesheet line's action_timer_stop() for
correct
unit handling.
Cron Every Minute
The scheduled action "Auto-stop Timesheet Timers (Configured Limit)" runs every minute so long-running timers are stopped shortly after the limit is reached.
Timesheet Timer Auto-Stop
First Install the custom module in the system that automatically stops running timesheet timers using a scheduled action (cron job).
Timesheet Grid View Timer Start Option
Users can launch the timer from the Timesheet Grid view by clicking the "Start" button. Time is recorded on a weekly basis and tracked per project.
Active Running Timer with Live Duration
Once the timer is started: A “Stop” button becomes visible The live duration is displayed in real time Users can enter an activity description
Technical Settings Access
Settings → Technical → System Parameters
Timesheet Grid Configuration Parameters
These parameters define the minimum duration and rounding rule applied to timesheet entries.
Automation – Scheduled Actions Configuration
Settings → Technical → Automation → Scheduled Actions This section is used to manage cron jobs and automated backend processes..
Scheduled Action (Cron) Auto-Stop
Configurable Max Hours (timesheet.timer_max_hours)
Timesheet Line Integration (account.analytic.line)
action_timer_stop() on Timesheet Line
Cron Runs Every Minute
Release 19.0.1.0.0
Initial Release- Scheduled Action (cron) that auto-stops running timesheet timers after a configured limit (default 8 hours via system parameter timesheet.timer_max_hours).
-
Inherits
timer.timer; searches running timers linked toaccount.analytic.lineand callsaction_timer_stop()on the timesheet line when elapsed time exceeds the limit. - Cron runs every minute; depends on timer and hr_timesheet.
Please log in to comment on this module