Company Currency Mixin

Info Description

Company Currency Mixin is a lightweight mixin module in the @simetri-sinergi-id/ssi-mixin technology suite for Odoo 15. It provides a reusable abstract model — mixin.company_currency — that adds a company field and its derived currency field to any model.

Any model that inherits from mixin.company_currency automatically gains:

Monetary fields on inheriting models can set currency_field='company_currency_id' to format amounts in the company's currency without any extra boilerplate.

Features Key Features

Use Cases Use Cases / Context

Use this mixin for any transactional or master-data model that needs multi-company currency awareness:

Simply set _inherit = ["mixin.company_currency"] on your model and reference company_currency_id in your monetary fields.

Install Installation & Usage

  1. Clone branch 15.0 of the repository: https://github.com/simetri-sinergi-id/ssi-mixin
  2. Add the path to this repository in your Odoo configuration (addons-path).
  3. Update the module list (ensure you are in developer mode).
  4. Go to Apps → Apps → Main Apps, search for Company Currency Mixin, and install.
  5. In your custom model:
    _inherit = ["mixin.company_currency"]
  6. On any monetary field, add:
    currency_field="company_currency_id"

FAQs FAQ

Bug Tracker 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 Credits & Contributors

This module is developed and maintained by PT. Simetri Sinergi Indonesia.