Project Timesheet Holidays - re-enable generated timesheets edition
project_timesheet_holidays_editable · OCA/timesheet
-
Security25/25No findings
-
Activity20/25Last human commit 7 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_holiday_status_view_form_inherit |
hr.leave.type.form (in project_timesheet_holidays_edit_ts) | hr.leave.type | form | Inherits project_timesheet_holidays.hr_holiday_status_view_form_inherit |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (0)No public methods.
-
timesheet_edit_levelSelectioncompute='_compute_timesheet_edit_level'default='none'help='\n For this leave type, indicates who can edit generated timesheets\n 'readonly=Falseselection=[('none', 'None'), ('approver', 'Officer'), ('all', 'All')]store=True
No public methods.
Loading…
Loading…