Source Document Mixin
by OpenSynergy Indonesia https://simetri-sinergi.id , PT. Simetri Sinergi Indonesia https://simetri-sinergi.id| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 40 |
| Technical Name |
ssi_source_document_mixin |
| License | AGPL-3 |
| Website | https://simetri-sinergi.id |
| Versions | 11.0 14.0 |
Source Document Mixin
ssi_source_document_mixin provides an abstract Odoo model — mixin.source_document — that adds a lightweight polymorphic source- document reference to any model.
Rather than using Odoo’s schema-heavy fields.Reference column, the mixin stores the reference as two fields:
- source_document_model_id (ir.model) — the model of the source.
- source_document_res_id (Integer) — the ID of the source record.
A computed source_document_id (fields.Reference) assembles those two values into a navigable reference displayed in the UI, avoiding extra schema migrations while still supporting cross-model linking.
Installation
To install this module, you need to:
- Clone the branch 41.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
- Search For Source Document 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