Partner Multi Relation Archive Propagate
partner_multi_relation_archive_propagate · OCA/partner-contact
-
Security25/25No findings
-
Activity25/25Last human commit 6 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
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 = Trueare considered for propagation; - related partners without active users are archived and marked with
propagated_from_idpointing 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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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
No new fields.
Public methods (0)No public methods.
-
propagate_archiveBooleanhelp='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'
No public methods.
Loading…