Skip to content
Health
95/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 11 months ago
  • Required by25/25
    6 modules depend on it
  • Maturity25/25
    In 14 Odoo series since 6.1

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
6
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
1.31 MB
Module directory on disk
Code analysis 0 migration notes 6 models 6 views 0 HTTP endpoints

Description

This module provides base for building exchange rates providers and bundles following built-in providers:

  • European Central Bank (ported by Grzegorz Grzelak - OpenGLOBE.pl): reference rates are based on the regular daily query procedure between central banks within and outside the European System of Central Banks, which normally takes place at 2:15 p.m. (14:15) ECB time. Source is in EUR, for more details see corresponding ECB page.

This module is compatible with currency_rate_inverted module provided by OCA, that allows to maintain exchange rates in inverted format, helping to resolve rounding issues.

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 6

XML IDNameModelTypeStatus
res_config_settings_view_form res.config.settings.view.form res.config.settings form Inherits account.res_config_settings_view_form
res_currency_rate_provider_filter res.currency.rate.provider.filter res.currency.rate.provider search New
res_currency_rate_provider_form_view res.currency.rate.provider.form res.currency.rate.provider form New
res_currency_rate_provider_tree_view res.currency.rate.provider.list res.currency.rate.provider list New
res_currency_rate_update_wizard_form res.currency.rate.update.wizard.form res.currency.rate.update.wizard form New
view_currency_rate_form res.currency.rate.form res.currency.rate form Inherits base.view_currency_rate_form

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 6

New fields (1)
  • currency_rates_autoupdate Boolean
    default=True help='Enable automatic currency rates updates in this company.' string='Automatic Currency Rates (OCA)'
Public methods (0)

No public methods.

New fields (1)
  • currency_rates_autoupdate Boolean
    readonly=False related='company_id.currency_rates_autoupdate'
Public methods (0)

No public methods.

New fields (2)
  • provider_id Many2one → res.currency.rate.provider
    comodel_name='res.currency.rate.provider' ondelete='restrict' string='Provider' tracking=True
  • rate Float
    tracking=True
Public methods (1)
  • write(self, values)
    Unset link to provider in case 'rate' or 'name' are manually changed

New fields (1)
  • service Selection
    ondelete={'ECB': 'set default'} selection_add=[('ECB', 'European Central Bank')]
Public methods (0)

No public methods.

New fields (13)
  • active Boolean
    default=True
  • available_currency_ids Many2many → res.currency
    comodel_name='res.currency' compute='_compute_available_currency_ids' string='Available Currencies'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • currency_ids Many2many → res.currency
    column1='provider_id' column2='currency_id' comodel_name='res.currency' help='Currencies to be updated by this provider' required=True string='Currencies'
  • currency_name Char
    related='company_id.currency_id.name' string='Currency Name'
  • daily Boolean
    compute='_compute_daily' store=True
  • interval_number Integer
    default=1 required=True string='Scheduled Update Interval'
  • interval_type Selection
    default='days' required=True selection=[('days', 'Day(s)'), ('weeks', 'Week(s)'), ('months', 'Month(s)')] string='Scheduled Update Interval Unit'
  • last_successful_run Date
    string='Last Successful Update'
  • name Char
    compute='_compute_name' store=True
  • next_run Date
    default=fields.Date.today required=True string='Next Scheduled Update'
  • service Selection
    default='none' required=True selection=[('none', 'None')] string='Provider'
  • update_schedule Char
    compute='_compute_update_schedule'
Public methods (0)

No public methods.

New fields (3)
  • date_from Date
    default=fields.Date.context_today required=True string='Start Date'
  • date_to Date
    default=fields.Date.context_today required=True string='End Date'
  • provider_ids Many2many → res.currency.rate.provider
    column1='wizard_id' column2='provider_id' comodel_name='res.currency.rate.provider' string='Providers'
Public methods (2)
  • action_update(self)
  • default_get(self, fields_list)
    @api.model

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…