add hr_timesheet_sheet_no_review, hr_timesheet_sheet_holidays, hr_timesheet_sheet_delete_cascade
This commit is contained in:
parent
b07082f70d
commit
8b0d0bb6cc
53 changed files with 3953 additions and 0 deletions
22
hr_timesheet_sheet_no_review/readme/USAGE.rst
Normal file
22
hr_timesheet_sheet_no_review/readme/USAGE.rst
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
Once installed, the review buttons are gone from the timesheet sheet form and
|
||||
kanban; the ``Submitted``, ``To Review`` and ``Reviewer`` entries are gone from
|
||||
the sheet search view; the ``Not Submitted`` filter is gone from the timesheet
|
||||
search view; the department kanban no longer counts the sheets to approve; and
|
||||
the ``To Review`` and ``Timesheets to Submit`` menus are deactivated.
|
||||
|
||||
To release the sheets that were left frozen by the review workflow, go to
|
||||
*Timesheets > Timesheets > Unfreeze Pending Sheets*. The wizard first shows how
|
||||
many sheets, how many timesheet entries and how many hours are about to be
|
||||
released. Confirming sets those sheets back to draft and clears their reviewer.
|
||||
|
||||
Installing the module never changes the state of a sheet on its own: unfreezing
|
||||
is always an explicit decision of the timesheet manager. Running the wizard
|
||||
twice is safe — the second run reports zero sheets and changes nothing.
|
||||
|
||||
Take a backup before the first run: the operation touches every frozen sheet at
|
||||
once and the reviewer of the approved ones is lost.
|
||||
|
||||
To decide which sheets count as frozen, override
|
||||
``hr_timesheet.sheet._unfreeze_domain()``. For instance, an installation that
|
||||
wants to keep its approved sheets as historical record can narrow it down to
|
||||
``[("state", "=", "confirm")]``.
|
||||
Loading…
Add table
Add a link
Reference in a new issue