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

Module: Products & Pricelists

Entity: product.template

Compute Method: _compute_show_sales_price_page

Inputs Method Outputs
pricelist_active = self.env.user._has_group('product.group_product_pricelist')
for template in self:
            template.show_sales_price_page = pricelist_active and template.sale_ok

Back to entity