OdooWiki OCA HUB

Project Task Ancestor

project_task_ancestor folder_open OCA/project open_in_new
Services/Project License: LGPL-3

For some companies, having ancestor tasks is essential for structuring and organizing their work. However, in version 18, Odoo removed this feature, considering it unnecessary.

This module restores the ancestor task field with its associated logic, making it available again in Timesheets and Project reports.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Restores the Ancestor Task field on project tasks, timesheets and project/timesheet reports, so you can see and group work by the top-level task it belongs to.

This module brings back a field that links every task to its top-level (ancestor) task, and makes that information visible in several places.

On project tasks, an 'Ancestor Task' field is automatically calculated from the task's parent: a task with no parent has no ancestor, while a sub-task inherits the ancestor of its parent, or its parent itself if the parent has no ancestor. The value is stored, so it can be searched and grouped.

In the Tasks search view, you can filter and group tasks by 'Ancestor Task'. In the Timesheets list/filter view, the same field is available and can be used to group timesheet lines by ancestor task.

Two reporting models are extended so the ancestor appears in analysis: the project task report (report.project.task.user) and the timesheets analysis report (timesheets.analysis.report) both expose an 'Ancestor Task' column, and the project task report also groups results by it.

Timesheet lines (account.analytic.line) get a stored, related 'Ancestor Task' field taken from their task, which is what feeds the timesheet grouping and the timesheets analysis report. No new menus, buttons, emails or scheduled actions are added; the change is about making the ancestor visible and groupable again.

Depends on

hr_timesheet
Models and fields (4)
  • project.task · extends an existing modelancestor_id (Ancestor Task)
  • account.analytic.line · extends an existing modelancestor_task_id
  • report.project.task.user · extends an existing modelancestor_id (Ancestor Task)
  • timesheets.analysis.report · extends an existing modelancestor_task_id (Ancestor Task)

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: 2 confirmed, 7 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0

To use this module, you need to organize tasks in a hierarchical structure, where tasks can be nested within others. The top-level parent task in this hierarchy is the ancestor task.

In both the Project and Timesheet apps, you can Group by the ancestor task, and this field is also available for use in Project and Timesheet reports.

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.