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

View 20.0
Inputs Method Outputs
  • sale_ok
+ 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
  • show_sales_price_page

Back to entity