Partner Multi Relation Archive Propagate
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.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you mark partner relation types so that archiving a company also archives the partners linked to it through those relations, as long as they have no active users.
This module adds a new option to partner relation types so that archiving a company can automatically archive the partners connected to it through those relations.
- On each partner relation type form, a new "Propagate archive" checkbox appears. When ticked, relations of that type are taken into account when a company is archived.
- When you archive a company, Odoo looks at all partners linked to it through relation types with this option enabled. Partners that are not linked to active users are archived and marked as having been propagated from that company. Partners that are linked to active users are left untouched and listed in a message shown on the company.
- The archive propagation wizard button is shown on a company when it has at least one relation of a type with the option enabled.
- When the company is later unarchived, the partners that were archived because of it are restored automatically.
- Only companies propagate this way; individual (non-company) partners do not, even if they are involved in relations with the option enabled.
The module works together with the partner archive propagation and partner multi-relation features, and touches the res.partner and res.partner.relation.type models.
Models and fields (2)
- res.partner · extends an existing model
- res.partner.relation.type · extends an existing modelpropagate_archive (Propagate archive)
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/partner-contact.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0- Install the following modules:
partner_multi_relationpartner_archive_propagatepartner_multi_relation_archive_propagate(this module)- Configure relation types:
- Go to Relation Types menu.
- Create or edit a relation type.
- Enable "Propagate archive" (
propagate_archive) on the relation type(s) where archiving should cascade. - Create relations:
- Link a company partner to other partners using the configured relation types.
- Archive a company:
- Use the "Archive Contact and Children" button (not the gear menu) to propagate archiving to related partners.
- The wizard lists both hierarchy contacts and contact-type relation partners. Remove any row to exclude that partner from the operation.
- All related partners reachable via relation types with
propagate_archive = Truewill be treated like propagated descendants: - archived if possible,
- skipped (and mentioned) if they have active users,
- marked with
propagated_from_id = <company>. > Note: The gear (⚙) Archive action archives only the company > itself and never propagates to relation partners, regardless of the > Force propagation outside UI setting. - Unarchive the company:
- Unarchiving the company triggers the base
partner_archive_propagatelogic. - All partners (tree descendants or relation-based) that were archived because of this company (
propagated_from_id) are unarchived and have the field cleared.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.