Partner Mixin
by OpenSynergy Indonesia https://simetri-sinergi.id , PT. Simetri Sinergi Indonesia https://simetri-sinergi.id
Odoo
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 275 |
| Technical Name |
ssi_partner_mixin |
| License | AGPL-3 |
| Website | https://simetri-sinergi.id |
Partner Mixin
ssi_partner_mixin provides an abstract Odoo model — mixin.partner — that adds configurable partner and contact fields to any document model.
Any model that inherits from mixin.partner automatically gains:
- partner_id (res.partner) — top-level company/individual partner.
- contact_partner_id (res.partner) — contact person under the selected partner, filtered via a computed allowed_contact_ids.
- Computed boolean attributes (mixin_partner_partner_id_required, mixin_partner_partner_id_readonly, etc.) that expose the effective required/readonly state of both partner fields, driven by class-level configuration and the record’s current state.
- Optional view injection into form, tree, and search views controlled by class-level _mixin_partner_insert_* and _xpath_* attributes.
Installation
To install this module, you need to:
- Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-mixin
- Add the path to this repository in your configuration (addons-path)
- Update the module list (Must be on developer mode)
- Go to menu Apps -> Apps -> Main Apps
- Search For Partner Mixin
- Install the module
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 smash it by providing detailed and welcomed feedback.
Credits
Contributors
- Andhitia Rama <andhitia.r@gmail.com>
Maintainer
This module is maintained by the PT. Simetri Sinergi Indonesia.
Please log in to comment on this module