Metadata-Version: 2.5
Name: trytond_itil5_service_catalogue
Version: 8.0.0.1
Summary: ITIL 5 service catalogue: services, goals, rates, documentation and dependencies
Author: Clemens Hupka
Maintainer-email: Clemens Hupka <issues@tryton-erp.eu>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
License-File: LICENSE
Keywords: catalogue,itil,itil5,service,tryton
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Requires-Dist: trytond-currency<8.1,>=8.0
Requires-Dist: trytond-itil5<8.1,>=8.0
Requires-Dist: trytond-party<8.1,>=8.0
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Requires-Dist: trytond-cmdb-service<8.1,>=8.0; extra == 'test'
Requires-Dist: trytond-product<8.1,>=8.0; extra == 'test'
Description-Content-Type: text/x-rst

ITIL 5 Service Catalogue Module
===============================

The ``itil5_service_catalogue`` module is the service catalogue of the
ITIL 5 module group.  It answers the question a service provider is run
for: *which services do we offer, what do they promise, who owns them,
what do they cost and what depends on what*.

The module completes the catalogue of ``itil4_service_catalogue``: every
field that module left as a TODO is modelled here, and the model is the
one the CMDB (``cmdb_service``) and ``statuspage`` consume, never the
other way round.

Dependencies
------------

The module depends on the following Tryton modules:

* ``ir`` -- base framework (always required)
* ``res`` -- users and groups (always required)
* ``currency`` -- the currency of the rates
* ``party`` -- the party that manages a record
* ``itil5`` -- the framework base, which owns the organisation register
  a department is chosen from

Optional dependencies
---------------------

Two modules are *extra* dependencies, never a hard one: the catalogue
installs and works without them, and only activates the reference they
provide when they are installed.

* ``cmdb_service`` -- the CMDB business service carries the reference to
  its catalogue service, which the read-only
  ``ITILService.get_cmdb_service_records`` helper reads back.  The
  reference itself is added by the CMDB module (issue #907); until it is
  installed the helper answers an empty list.
* ``product`` -- the service can be linked to the commercial offering it
  is sold as, registered by the ``[register product]`` section of
  ``tryton.cfg``.

Models
------

The module registers the following models:

* ``itil5.service.category`` -- the top level of the catalogue, such as
  "Infrastructure".
* ``itil5.service.group`` -- the offering family inside a category, such
  as "Network".
* ``itil5.service`` -- the service itself, with its documentation, its
  rates and its dependencies.
* ``itil5.service.rate`` -- a rate line with its amount, currency and
  period, attached to exactly one service, group or category.
* ``itil5.service.dependency`` -- an edge of the service graph, with its
  type and criticality.
* ``itil5.service.documentation`` -- a documentation link of a service,
  such as its "learn more" page.

Goals and ownership
-------------------

Every level carries the availability target, the support hours and
support model, the business impact and criticality, the owner, the
managing party, the department of the organisation register, the icon,
the life cycle state and the sequence.  A service therefore restates the
goal of the level it belongs to and a query can be run at any of the
three levels.

Rates
-----

A rate line carries its amount, its currency and its period (monthly,
quarterly, yearly or one-off) and belongs to exactly one service, group
or category.  ``annualised_amount`` normalises the amount of a line to
one year and ``rate_total`` sums the annualised amounts of the lines a
record carries, so that the TCO workstream can read the cost of a
service.  The rate lines of one record have to share one currency, so
that their total is defined.

Service graph
-------------

``itil5.service.dependency`` links two services with a type (``depends
on``, ``supports`` or ``is part of``) and a criticality, so that impact
analysis can follow the service graph.  A service cannot depend on
itself and the graph cannot contain a cycle: a cycle is refused with a
``UserError`` that names the services it is made of.

Validation
----------

* The code of a category, a group and a service is unique.
* A service cannot reference a category other than its group's category.
* The availability target is a percentage between 0 and 100.
* A rate line belongs to exactly one level, its amount is positive and
  its currency is set.
* The rate lines of one record share one currency.
* A service cannot depend on itself and the service graph has no cycle.
* A documentation link is named once per service.

Access rights
-------------

The module defines two groups: *ITIL 5 Service Catalogue* may browse and
edit the catalogue, and *ITIL 5 Service Catalogue Administration* has
full control over it.  Every model also carries a group-less read-only
row, so no model is invisible to a regular user, and every window is
assigned to both groups and to the built-in administrator, so no menu is
left without a group.

Usage
-----

The windows of the module live under *ITIL 5 > Service catalogue*: the
overview board, the services, the service groups, the service
categories, the rates, the service dependencies and the documentation.

Documentation
-------------

The Sphinx documentation of the module lives in ``doc/``; the field list
of every model, including the mapping note for the CMDB, is in
``doc/models.rst``.
