Files
tryton/modules/party_relationship
Cédric Krier 1050494552 Use binary version of psycopg for tests
(grafted from 844c3d391796ffe89afce54d12f6bf5f4aa8ef4e)

--HG--
branch : 7.0
2026-07-17 22:16:19 +02:00
..
2024-02-18 18:35:54 +01:00
2023-10-28 14:15:23 +02:00
…
2023-05-01 13:19:11 +02:00
…
…
2023-10-22 19:40:55 +02:00
2025-01-16 18:47:23 +01: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``.