.. include:: /Includes.rst.txt .. _feature-1791365187: ================================== Feature: Disciplinary action types ================================== Description =========== HR keeps the kinds of disciplinary action the company records under ``/api/v1/disciplinary-action-types``: a translatable name, the kind ``warning``, ``suspension`` or ``dismissal``, and whether an action of the type blocks the employee's sign-in, which a warning never does. Every company starts with "Warning", "Suspension" and "Dismissal" in English and German; a type that was used can only be archived. The defaults a company starts with now come from every module through the tag ``adsum.structure_defaults`` (``StructureDefaults``), so ``app:company:setup`` also creates the action types of an existing company. Impact ====== Run the database migrations. They create the three types for every existing company. .. index:: Backend, Database, API, package:adsum-core