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
| Inputs | Method | Outputs |
|---|---|---|
|
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)
)
|
|
