HR

Työntekijät ja poissaolot

MarkkinapaikkaIhmiset ja projektitVersio 0.1.0manifest

Mihin se on tarkoitettu ​

A register of employees, departments and leave requests, with strict data classes: pay, bank details and national id are visible to managers only and health or union data only to a special reader group. Agents never see the sensitive classes.

Mitä paketti tekee ja mitä ei ​

Employees, departments and leave requests. Personal data is classified strictly: pay, bank and national id are visible to managers only, and health and union data to the special reader group.

Mallit ​

hr_department ​

A team or department of the company

Lukuryhmä: hr.user. Kirjoitusryhmä: hr.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
nametextnoneeihr.userselkoisenaDepartment name
headtextpublic_directorykyllähr.usermaskattuName of the department head
cost_centretextnoneeihr.userselkoisenaCost centre code used by finance

hr_employee ​

A person employed by the company

Lukuryhmä: hr.user. Kirjoitusryhmä: hr.manager.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
nametextpublic_directorykyllähr.usermaskattuFull name
job_titletextpublic_directorykyllähr.usermaskattuJob title
work_emailtextpublic_directorykyllähr.usermaskattuWork email address
work_phonetextpublic_directorykyllähr.usermaskattuWork phone number
department_idref → hr_departmentnoneeihr.userselkoisenaThe department the person belongs to
reports_to_idref → hr_employeenoneeihr.userselkoisenaThe person's line manager
hired_ondateinternalkyllähr.usermaskattuFirst day of employment (YYYY-MM-DD)
contract_typeselect (permanent, fixed_term, contractor, intern)confidential_hrkyllähr.managerpidätettyType of employment contract: permanent, fixed_term, contractor, intern
private_emailtextconfidential_hrkyllähr.managerpidätettyPrivate email address
private_phonetextconfidential_hrkyllähr.managerpidätettyPrivate phone number
home_addresslongtextconfidential_hrkyllähr.managerpidätettyPrivate home address
birth_datedateconfidential_hrkyllähr.managerpidätettyDate of birth (YYYY-MM-DD)
national_idtextconfidential_hrkyllähr.managerpidätettyNational identity or social security number
emergency_contacttextconfidential_hrkyllähr.managerpidätettyName and phone of the person to call in an emergency
salarymoneyfinancialkyllähr.managerpidätettyGross annual salary (minor currency units, e.g. cents)
bank_ibantextfinancialkyllähr.managerpidätettyBank account salary is paid into
union_memberboolspecial_categorykyllähr.special_readerpidätettyWhether the person is a trade union member
work_permit_expirydatespecial_categorykyllähr.special_readerpidätettyDate the work permit expires, for non-citizens (YYYY-MM-DD)
health_notelongtextspecial_categorykyllähr.special_readerpidätettyHealth condition or disability relevant to the workplace
stateselect (onboarding, active, offboarded)noneeihr.userselkoisenaEmployment status: onboarding, active, offboarded

hr_leave_request ​

A request for time off

Lukuryhmä: hr.user. Kirjoitusryhmä: hr.user.

KenttäTyyppiTietoluokkaHenkilötietoRyhmäAgentit näkevätKuvaus
employee_idref → hr_employeenoneeihr.userselkoisenaThe employee asking for time off
leave_kindselect (paid, unpaid, parental, study, other)confidential_hrkyllähr.userpidätettyKind of leave: paid, unpaid, parental, study, other
start_ondateinternalkyllähr.usermaskattuFirst day of absence (YYYY-MM-DD)
end_ondateinternalkyllähr.usermaskattuLast day of absence (YYYY-MM-DD)
daysnumbernoneeihr.userselkoisenaWorking days requested
reasonlongtextconfidential_hrkyllähr.managerpidätettyWhy the leave is requested
is_sick_leaveboolspecial_categorykyllähr.special_readerpidätettyWhether the absence is due to illness
medical_notelongtextspecial_categorykyllähr.special_readerpidätettyReference to the medical certificate, if any
stateselect (draft, requested, approved, refused)noneeihr.userselkoisenaRequest status: draft, requested, approved, refused

Työnkulut ​

hr_employee ​

ToimintoSiirtääKuka voi suorittaaHyväksyntä
hr_employee.activatestate: onboarding → activehr.managerei
hr_employee.offboardstate: active → offboardedhr.managerkyllä

hr_leave_request ​

ToimintoSiirtääKuka voi suorittaaHyväksyntä
hr_leave_request.requeststate: draft → requestedhr.userei
hr_leave_request.approvestate: requested → approvedhr.managerkyllä
hr_leave_request.refusestate: requested → refusedhr.managerkyllä

Käyttöoikeusryhmät ​

Tämän sovelluksen käyttämät ryhmät:

  • hr.manager
  • hr.special_reader
  • hr.user

Hyväksyntävaiheet ​

Vaiheet, joita agentti voi vain ehdottaa:

  • hr_employee.offboard
  • hr_leave_request.approve
  • hr_leave_request.refuse

Mitä agentit voivat ja eivät voi tehdä ​

Agentti voi lukea, hakea, luoda ja päivittää tämän sovelluksen tietueita sekä suorittaa toiminnot, jotka eivät vaadi hyväksyntää, tunnisteensa käyttöoikeusryhmien rajoissa.

Se voi vain ehdottaa näitä vaiheita, ja ihmisen on hyväksyttävä ne: hr_employee.offboard, hr_leave_request.approve, hr_leave_request.refuse, hr_department.delete, hr_employee.delete, hr_leave_request.delete.

Henkilötiedot maskataan paikkamerkeiksi: hr_department.head, hr_employee.name, hr_employee.job_title, hr_employee.work_email, hr_employee.work_phone, hr_employee.hired_on, hr_leave_request.start_on, hr_leave_request.end_on.

Nämä kentät pidätetään agenteilta kokonaan: hr_employee.contract_type, hr_employee.private_email, hr_employee.private_phone, hr_employee.home_address, hr_employee.birth_date, hr_employee.national_id, hr_employee.emergency_contact, hr_employee.salary, hr_employee.bank_iban, hr_employee.union_member, hr_employee.work_permit_expiry, hr_employee.health_note, hr_leave_request.leave_kind, hr_leave_request.reason, hr_leave_request.is_sick_leave, hr_leave_request.medical_note.

Riippuvuudet ​

Ei ole.

Asennus ​

Asenna se Customize-sovelluksesta (Marketplace) tai komentoriviltä:

bash
obop modules install-from hr

Vaatii tietokannan ja ylläpitäjän oikeudet.

Tee oma ​

Moduulioppaassa näytetään, miten tällaiset sovellukset kirjoitetaan