add hr_timesheet_sheet_no_review, hr_timesheet_sheet_holidays, hr_timesheet_sheet_delete_cascade

This commit is contained in:
Luis 2026-09-22 10:58:36 +02:00
parent b07082f70d
commit 8b0d0bb6cc
53 changed files with 3953 additions and 0 deletions

View file

@ -0,0 +1,16 @@
* Public holidays generate timesheet entries carrying ``global_leave_id``
instead of ``holiday_id``. Neither policy applies to them: they do not belong
to a single employee and there is no balance to restore. They are deleted
with the sheet like any other entry, and they are removed on their own when
the public holiday itself is deleted, through the ``ondelete='cascade'`` of
the field.
* The ``cancel`` policy refuses, resets and deletes the time off request. An
installation that wants to keep a history of the cancelled requests would
stop at the refusal, which is already where the days are restored to the
balance. It is a known variant and it is not implemented.
* The confirmation wizard reads the time off requests in ``sudo`` under the
``cancel`` policy, because a timesheet manager entitled to delete the sheet
of another employee is not necessarily entitled to read that employee's time
off.