OdooWiki OCA HUB

Task Log: limit Task by Project

hr_timesheet_task_domain folder_open OCA/timesheet open_in_new
Human Resources License: AGPL-3

This module adjusts the domain applied to task field in order to limit task selection to currently-selected project, also limits selection to tasks in any of "Open" stages in order to accommodate a project flow.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

When logging time on a timesheet, the Task field only shows tasks that belong to the selected project and are still open, so users cannot pick tasks from other projects or closed stages.

This module changes how the Task field behaves on timesheet lines (the account.analytic.line model used by the Timesheet app).

  • If a project is already selected on the timesheet line, the Task dropdown is limited to tasks of that same project.
  • Only tasks whose project allows timesheets are offered.
  • Tasks in closed stages are hidden, so users can only log time on tasks that are still in progress.
  • Tasks from other companies are excluded, except tasks with no company set, which remain available.
  • If no project is selected yet, the Task list is not restricted to a project, but still respects the other rules (timesheet-enabled project, open stage, company).

There are no new menus, buttons, reports or scheduled actions. The change is purely a restriction on the choices shown in the Task field when entering or editing timesheet entries. It affects the Timesheet area and any screen where timesheet lines are created, such as the Timesheet app or the timesheet tab on a task or project.

Depends on

hr_timesheet
Models and fields (1)
  • account.analytic.line · extends an existing modeltask_id

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation 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

No verified information

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.

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.