Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Sales
Entity: sale.order
Compute Method: _compute_has_active_pricelist
| Inputs | Method | Outputs |
|---|---|---|
|
for order in self: - order.has_active_pricelist = bool(self.env['product.pricelist'].search( - [('company_id', 'in', (False, order.company_id.id)), ('active', '=', True)], - limit=1, - )) + order.has_active_pricelist = bool( + self.env["product.pricelist"].search( + [("company_id", "in", (False, order.company_id.id)), ("active", "=", True)], + limit=1, + ) + ) |
|
