Files
tryton/modules/party_relationship
Cédric Krier 97cc2d63fa Do not use empty contextual date to calculate active of party relation
Closes #13733
(grafted from 0e47111b92d3b435ddf22e8fa3ec4b74a06f0cb0)

--HG--
branch : 7.0
2024-12-26 18:54:46 +01:00
..
2024-02-18 18:35:54 +01:00
2023-10-28 14:15:23 +02:00
2022-12-16 17:58:32 +01:00
2022-12-16 17:58:32 +01:00
2022-12-16 17:58:32 +01:00
2023-10-30 18:17:32 +01:00
2023-05-01 13:19:11 +02:00
2022-12-16 17:58:32 +01:00
2022-12-16 17:58:32 +01:00
2022-12-16 17:58:32 +01:00
2022-12-16 17:58:32 +01:00
2023-10-22 19:40:55 +02:00
2023-10-22 19:40:55 +02:00
2023-10-30 18:49:03 +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``.