Skip to main content

Currency Mixin

Project description

License: AGPL-3

Currency Mixin

ssi_currency_mixin provides an abstract Odoo model — mixin.currency — that standardises multi-currency handling on transactional documents.

Any model that inherits from mixin.currency automatically gains:

  • currency_id — the transaction currency, defaulting to the company’s currency.

  • company_id — the owning company.

  • rate_inverted — mirrors the rate_inverted flag from the currency master.

  • rate — the exchange rate in use for the transaction date.

  • onchange_rate_mixin — auto-fills rate from the currency master whenever currency_id or company_id changes.

  • _convert_amount_to_company_currency — helper that converts a transaction-currency amount to the company currency using rate and rate_inverted.

Subclasses set _exchange_date_field to the name of the date field used for historical rate look-ups.

Installation

To install this module, you need to:

  1. Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-mixin

  2. Add the path to this repository in your configuration (addons-path)

  3. Update the module list (Must be on developer mode)

  4. Go to menu Apps -> Apps -> Main Apps

  5. Search For Currency Mixin

  6. 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

Maintainer

PT. Simetri Sinergi Indonesia

This module is maintained by the PT. Simetri Sinergi Indonesia.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo14_addon_ssi_currency_mixin-14.0.1.2.1.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo14_addon_ssi_currency_mixin-14.0.1.2.1.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 56b003e247660a675e9a8c5edb160120c2bcf22c59131724e4014ffe1939649f
MD5 b80b4c9a4d40c5ab2b94c2cd6608131a
BLAKE2b-256 75d768572867d63a5fc8ca9c8528f9cca421484650a054a2d1f2e1b299d85fd2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page