Propagate archiving via partner_multi_relation relations
Project description
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.
Table of contents
Usage
Install the following modules:
partner_multi_relation
partner_archive_propagate
partner_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:
Archive the company (via the UI wizard or via non-UI operations, depending on your configuration in partner_archive_propagate).
All related partners reachable via relation types with propagate_archive = True will be treated like propagated descendants: * archived if possible, * skipped (and mentioned) if they have active users, * marked with propagated_from_id = <company>.
Unarchive the company:
Unarchiving the company triggers the base partner_archive_propagate logic.
All partners (tree descendants or relation-based) that were archived because of this company (propagated_from_id) are unarchived and have the field cleared.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Nikos Tsirintanis <ntsirintanis@therp.nl>
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Current maintainer:
This module is part of the OCA/partner-contact project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo_addon_partner_multi_relation_archive_propagate-16.0.1.0.0.2-py3-none-any.whl.
File metadata
- Download URL: odoo_addon_partner_multi_relation_archive_propagate-16.0.1.0.0.2-py3-none-any.whl
- Upload date:
- Size: 30.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66a9000230193c305170e09fed0b5c1a81e15fc5fce2a8d951982ac8776f343b
|
|
| MD5 |
ec0615697ee9d597212341feeca3897e
|
|
| BLAKE2b-256 |
c8a80cab6f767fc3ba91af764508b1210d9650e90cd3b34717175170cb3db568
|