Project Timesheet Holidays - re-enable generated timesheets edition

project_timesheet_holidays_editable
REPOSITORY
REPOSITORYOCA/timesheet
GIT
GIThttps://github.com/OCA/timesheet.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/timesheet/tree/18.0/project_timesheet_holidays_editable
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Solvos Consultoría Informática
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Solvos Consultoría Informática
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Carlos Garcia
WEBSITE
WEBSITEhttps://github.com/OCA/timesheet
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:17
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - project_timesheet_holidays
    - hr_timesheet
    - hr
    - base_setup
    - base
    - web
    - digest
    - mail
    - bus
    - web_tour
    - html_editor
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - phone_validation
    - resource_mail
    - hr_hourly_cost
    - analytic
    - uom
    - project
    - rating
    - hr_holidays
    - calendar
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
By default, every timesheet generated from a leave becomes read-only, so nobody can directly edit it and e.g. change its hour count. This shouldn't occur in Odoo previous versions.

This could be annoying, because for certain leaves (like medical leaves), final spent time should be different than initial leave filled. This forces to reject, modify and then approve again leave. Exact time could not be filled sometimes anyway, due to leave form hour selection.

This addon re-enables timesheet edition when they're generated from leaves (initially name and quant fields), letting us make it editable depending on leave type.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
hr_holiday_status_view_form_inherit hr.leave.type.form (in project_timesheet_holidays_edit_ts) hr.leave.type field Inherits project_timesheet_holidays.hr_holiday_status_view_form_inherit
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • timesheet_edit_level Selection
    compute='_compute_timesheet_edit_level' default='none' help='\n For this leave type, indicates who can edit generated timesheets\n ' readonly=False selection=[('none', 'None'), ('approver', 'Officer'), ('all', 'All')] store=True
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/timesheet
GIT
GIThttps://github.com/OCA/timesheet.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/timesheet/tree/17.0/project_timesheet_holidays_editable
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYHuman Resources
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Solvos Consultoría Informática
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Solvos Consultoría Informática
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Carlos Garcia
WEBSITE
WEBSITEhttps://github.com/OCA/timesheet
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - project_timesheet_holidays
    - hr_timesheet
    - hr
    - base_setup
    - base
    - web
    - phone_validation
    - mail
    - bus
    - web_tour
    - resource
    - hr_hourly_cost
    - analytic
    - uom
    - project
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - rating
    - digest
    - hr_holidays
    - calendar
    - onboarding
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
By default, every timesheet generated from a leave becomes read-only, so nobody can directly edit it and e.g. change its hour count. This shouldn't occur in Odoo previous versions.

This could be annoying, because for certain leaves (like medical leaves), final spent time should be different than initial leave filled. This forces to reject, modify and then approve again leave. Exact time could not be filled sometimes anyway, due to leave form hour selection.

This addon re-enables timesheet edition when they're generated from leaves (initially name and quant fields), letting us make it editable depending on leave type.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
hr_holiday_status_view_form_inherit hr.leave.type.form (in project_timesheet_holidays_edit_ts) hr.leave.type field Inherits project_timesheet_holidays.hr_holiday_status_view_form_inherit
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • timesheet_edit_level Selection
    compute='_compute_timesheet_edit_level' default='none' help='\n For this leave type, indicates who can edit generated timesheets\n ' readonly=False selection=[('none', 'None'), ('approver', 'Officer'), ('all', 'All')] store=True
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/timesheet
PULL REQUEST
PULL REQUEST[19.0][MIG] project_timesheet_holidays_editable (#935)