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

Module: eCommerce

Entity: website

Compute Method: _compute_currency_id

View 18.0 View 20.0
Inputs Method Outputs
  • pricelist_id
  • pricelist_id.currency_id
  • company_id
  • company_id.currency_id
for website in self:
-             website.currency_id = website.pricelist_id.currency_id or website.company_id.sudo().currency_id
+             website.currency_id = website.pricelist_id.currency_id or website.company_id.currency_id
  • currency_id

Back to entity