Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Base

Entity: res.currency.rate

Compute Method: _compute_company_currency_id

View 20.0
Inputs Method Outputs
  • company_id
+ for currency_rate in self:
+             currency_rate.company_currency_id = (currency_rate.company_id or self.env.company.root_id).currency_id
  • company_currency_id

Back to entity