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

Inputs Method Outputs
  • company_id
for website in self:
            website.currency_id = (
                request and hasattr(request, 'pricelist') and request.pricelist.currency_id
                or website.company_id.sudo().currency_id
            )

Back to entity