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

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

Back to entity