Planning

Zmiany i zasoby

MarketplaceLudzie i projektyWersja 0.1.0manifest

Do czego służy ​

Plan shifts for employees from reusable templates. A shift with nobody assigned is an open shift; the workflow runs from open through published to confirmed by the employee.

Co pakiet robi, a czego nie robi ​

Shifts for employees, with roles and reusable templates. A shift has a day and a start and end in minutes since midnight (0 to 1439; 540 is 09:00). A shift with no employee is an open shift. Workflow: open, published, confirmed by the employee. Needs the Human Resources package.

Modele ​

planning_role ​

A role a shift is planned for, for example cashier or electrician

Grupa odczytu: planning.user. Grupa zapisu: planning.manager.

PoleRodzajKlasa danychDane osoboweGrupaAgenci widząOpis
nametextnonenieplanning.userjawnieRole name
notelongtextnonenieplanning.userjawnieWhat the role involves

planning_template ​

A reusable shift pattern to copy into shifts

Grupa odczytu: planning.user. Grupa zapisu: planning.manager.

PoleRodzajKlasa danychDane osoboweGrupaAgenci widząOpis
nametextnonenieplanning.userjawnieTemplate name, for example Morning shift
role_idref → planning_rolenonenieplanning.userjawnieThe role the template is for
start_minutenumbernonenieplanning.userjawnieStart in minutes since midnight (540 is 09:00)
end_minutenumbernonenieplanning.userjawnieEnd in minutes since midnight (1020 is 17:00)

planning_shift ​

A slot of work on one day for one role, optionally assigned to an employee

Grupa odczytu: planning.user. Grupa zapisu: planning.manager.

PoleRodzajKlasa danychDane osoboweGrupaAgenci widząOpis
nametextnonenieplanning.userjawnieShort title, for example Opening shift
role_idref → planning_rolenonenieplanning.userjawnieThe role needed
employee_idref → hr_employeeinternaltakplanning.userzamaskowaneEmployee the shift is assigned to; empty for an open shift
work_datedatenonenieplanning.userjawnieDay of the shift (YYYY-MM-DD)
start_minutenumbernonenieplanning.userjawnieStart in minutes since midnight, 0 to 1439 (540 is 09:00)
end_minutenumbernonenieplanning.userjawnieEnd in minutes since midnight, 0 to 1439 (1020 is 17:00)
notelongtextnonenieplanning.userjawnieInstructions for whoever works the shift
stateselect (open, published, confirmed)nonenieplanning.userjawnieShift status: open, published, confirmed

Przepływy pracy ​

planning_shift ​

AkcjaPrzenosiKto może uruchomićZatwierdzenie
planning_shift.publishstate: open → publishedplanning.managernie
planning_shift.unpublishstate: published → openplanning.managernie
planning_shift.confirmstate: published → confirmedplanning.managernie

Grupy uprawnień ​

Grupy używane przez tę aplikację:

  • planning.manager
  • planning.user

Kroki zatwierdzania ​

Żaden krok w tej aplikacji nie wymaga zatwierdzenia, poza usuwaniem rekordów.

Co agenci mogą, a czego nie mogą ​

Agent może odczytywać, wyszukiwać, tworzyć i aktualizować rekordy tej aplikacji oraz uruchamiać akcje niewymagające zatwierdzenia, w ramach grup uprawnień swojego tokenu.

Te kroki może tylko zaproponować, a człowiek musi je zatwierdzić: planning_role.delete, planning_template.delete, planning_shift.delete.

Dane osobowe są maskowane jako tokeny zastępcze: planning_shift.employee_id.

Zależności ​

  • hr

Instalacja ​

Zainstaluj ją w aplikacji Customize (Marketplace) lub z wiersza poleceń:

bash
obop modules install-from planning

Wymaga bazy danych i uprawnień administratora.

Zbuduj własną ​

Przewodnik po modułach pokazuje, jak pisze się takie aplikacje