Repository
OCA/partner-contact · module folder · Try on Runboat
Module version
1.0.0
Category
Partner Management
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/partner-contact
Last tracking update
2026-08-07 08:42:56
Authors
Odoo Community Association (OCA), Therp BV
Maintainers
Odoo Community Association (OCA), Therp BV
Committers
Weblate, Nikos Tsirintanis, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
## Partner Multi Relation Archive Propagate

This module extends the behaviour of partner_archive_propagate to also
propagate archiving and unarchiving **via partner_multi_relation
relations**.

When a company is archived:

- all related partners linked through relation types with
  `propagate_archive = True` are considered for propagation;
- related partners without active users are archived and marked with
  `propagated_from_id` pointing to the company;
- related partners linked to active users are skipped and listed in a
  message on the company.

When the company is unarchived, all partners that were archived because
of it – whether through the partner hierarchy or through multi-relations
– are restored automatically by the core partner_archive_propagate
logic.

Non-company partners do not propagate via this module, even if they are
involved in relations with `propagate_archive = True`.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_res_partner_relation_type_form_archive_propagate res.partner.relation.type.form.archive.propagate res.partner.relation.type form Inherits partner_multi_relation.form_res_partner_relation_type
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • propagate_archive Boolean
    help='If enabled, archiving an organisational partner will also archive partners that are linked through relations of this type, when they are not linked to active users. Those partners are marked as propagated, so they can be unarchived again together with the organisation.' string='Propagate archive'
Public methods (0)

No public methods.

Loading…