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

Module: Point of Sale

Entity: pos.combo

Compute Method: _compute_base_price

View 17.0
Inputs Method Outputs
  • combo_line_ids
- for rec in self:
-             # Use the lowest price of the combo lines as the base price
-             rec.base_price = min(rec.combo_line_ids.mapped("product_id.lst_price")) if rec.combo_line_ids else 0
  • base_price

Back to entity