Company Currency 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 | 23 |
| Technical Name |
ssi_company_currency_mixin |
| License | AGPL-3 |
| Website | https://simetri-sinergi.id |
| Versions | 11.0 14.0 |
Company Currency Mixin
ssi_company_currency_mixin provides a lightweight abstract Odoo model — mixin.company_currency — that adds a company field and its derived currency to any model.
Any model that inherits from mixin.company_currency automatically gains:
- A mandatory company_id (res.company) field defaulting to the current user’s company.
- A stored, related company_currency_id field that always reflects the selected company’s currency.
Monetary fields on child models can set currency_field='company_currency_id' to format amounts in the company’s currency without extra boilerplate.
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 Company Currency 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