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_pricelist_ids

View 19.0 View 20.0
Inputs Method Outputs
  • company_id
for website in self:
            website = website.with_company(website.company_id)
-             ProductPricelist = website.env['product.pricelist']  # with correct company in env
+             ProductPricelist = website.env["product.pricelist"]  # with correct company in env
            website.pricelist_ids = ProductPricelist.sudo().search_fetch(
                ProductPricelist._get_website_pricelists_domain(website)
            )
  • pricelist_ids

Back to entity