This module allows to configure project as having task on timesheet as a mandatory field.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Lets you make the task field mandatory on timesheets, either by default for the whole company or per project, so users cannot log time without choosing a task.
This module adds a simple but strict rule to timesheet entry: when a project requires tasks, every timesheet line must have a task selected.
Where you configure it: - In Settings, under the timesheet/project time options, there is a new setting "Require Tasks on Timesheets". It sets the default for new projects. - On each project form, when timesheets are allowed, a new option "Require Tasks on Timesheets" appears. It is pre-filled from the company default but can be changed per project.
What changes for users:
- On timesheet lines (the account.analytic.line records used by hr_timesheet), the task field becomes required whenever the related project requires tasks. This applies both in the form and in the list view.
- If someone tries to save a timesheet line without a task on such a project, Odoo blocks it with the message "You must specify a task for timesheet lines."
Business rules and automatic behaviour: - The requirement is driven by the project setting, which itself defaults from the company setting. - The check runs automatically whenever the project or task on a timesheet line is changed.
Areas touched: timesheets, projects, and company settings. No new menus or reports are added; the module only extends existing screens.
Depends on
Models and fields (4)
- res.company · extends an existing modelis_timesheet_task_required (Require Tasks on Timesheets)
- project.project · extends an existing modelis_timesheet_task_required (Require Tasks on Timesheets)
- res.config.settings · extends an existing modelis_timesheet_task_required (Require Tasks on Timesheets)
- account.analytic.line · extends an existing modelis_task_required
Text generated by AI (DeepSeek) from reading the Odoo 19.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-03Confirmation status: 8 confirmed, 1 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/timesheet.
terminal Installation and usage
OCA documentation · Odoo 19.0Configuration
Source · Odoo 19.0To make task selection mandatory on project's timesheets:
Go to Project \> Projects and edit the project # Enable timesheets by checking Timesheets # Make task selection mandatory by checking Require Tasks on Timesheets
Default setting can be changed at company level:
Go to Project \> Configuration \> Settings # Make task selection mandatory for new projects by checking Require Tasks on Timesheets
No verified information in OCA: Installation, Usage.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.