OdooWiki OCA HUB

Project Task Stage Allow Timesheet

project_task_stage_allow_timesheet folder_open OCA/timesheet open_in_new
Uncategorised License: AGPL-3

Allows to tell that a task stage is opened for timesheets

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds an "Allow timesheets" option on project task stages so you can block logging time on tasks that are in stages where timesheets should not be recorded.

This module gives you control over which project task stages accept timesheet entries.

  • On each project task stage (the columns of the task kanban, configured under Project > Configuration > Task Stages) a new "Allow timesheets" checkbox appears, both in the list and in the stage form. It is ticked by default, so existing behaviour does not change until you untick it.
  • When you record a timesheet line and pick a task, only tasks whose current stage has "Allow timesheets" ticked are offered in the task selector. Tasks sitting in a stage where the option is off are hidden from that list.
  • If a timesheet line is nevertheless linked to a task whose stage does not allow timesheets, Odoo raises a validation error naming the task and the stage, so the entry cannot be saved.
  • The rule is enforced on timesheet lines (the account.analytic.line model) and the setting lives on the task stage model project.task.type. The task field on timesheet forms and lists is adjusted so the restriction applies there too.

This is useful when some stages, such as "Done" or "Cancelled", should no longer receive new time entries.

Depends on

hr_timesheetproject
Models and fields (2)
  • project.task.type · extends an existing modelallow_timesheet (Allow timesheets)
  • account.analytic.line · extends an existing modeltask_id

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/timesheet.

terminal Installation and usage

OCA documentation · Odoo 16.0

To configure this module, you need to:

. Go to Project -> Settings -> Stages (Debug mode needed) . Check the "Allow Timesheet" checkbox to allow timesheet encoding for the tasks which are in the current stage

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.