Skip to content

[18.0][ADD] project_timesheet_holidays_task_enable#934

Open
DantePereyra wants to merge 1 commit into
OCA:18.0from
solvosci:18.0-add-project_timesheet_holidays_task_enable
Open

[18.0][ADD] project_timesheet_holidays_task_enable#934
DantePereyra wants to merge 1 commit into
OCA:18.0from
solvosci:18.0-add-project_timesheet_holidays_task_enable

Conversation

@DantePereyra

Copy link
Copy Markdown

This PR introduces a new feature to bypass the native Odoo restriction on time off tasks. By default, when a task is linked to a Leave Type configuration, Odoo marks it as is_timeoff_task and restricts users from logging manual timesheets on it.

This addon adds a checkbox field timeoff_enable_use_timesheets to the task form. When enabled, it overrides the is_timeoff_task compute and search methods, re-enabling manual timesheet entries for that specific task.

@OCA-git-bot OCA-git-bot added series:18.0 mod:project_timesheet_holidays_task_enable Module project_timesheet_holidays_task_enable labels May 26, 2026
@DantePereyra DantePereyra force-pushed the 18.0-add-project_timesheet_holidays_task_enable branch from 816d9d0 to 3877285 Compare May 26, 2026 08:39
Add 'timeoff_enable_use_timesheets' field to project tasks to bypass
the native restriction that prevents manual timesheet logging on tasks
linked to time off types.
@DantePereyra DantePereyra force-pushed the 18.0-add-project_timesheet_holidays_task_enable branch from 3877285 to 66a248d Compare May 26, 2026 08:44

@cgarcia-solvos cgarcia-solvos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code and functional review. LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:project_timesheet_holidays_task_enable Module project_timesheet_holidays_task_enable series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants