Files
tryton/modules/party_relationship
Cédric Krier a61799cdc3 Pin setuptools version in tox env
We use the command test from setuptools which has been removed in version
72.0.0.

Closes #13510

--HG--
branch : 6.0
2024-09-13 16:37:56 +02:00
..
…
…
…
…
…
…
…
…
2024-09-13 16:37:56 +02:00

Party Relationship Module
#########################

The party relationship module allows to define different types of relations
between parties.

Each relation is defined by a relation type. A reverse relation type can be
defined, so  when creating a relation of a type, the reverse relation will be
automatically created.

It is possible to order parties by how closely related they are to a defined
party. The distance is calculated based on the number of steps it takes to get
from the defined party to another. By default all the different types of
relationship are considered, but this can be limited by adding
``relation_usages`` to the context.

Configuration
*************

The party_relationship module use the section `party_relationship` to retrieve
some parameters:

- `depth`: The maximum number of steps to consider when calculating the
  distance between parties.
  The default value is `7`.