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.prep.line

Compute Method: _compute_combo_fields

Inputs Method Outputs
for line in self:
            pos_line = line.pos_order_line_id
            if not pos_line.exists():
                continue
            if pos_line.combo_parent_id:
                line.combo_parent_id = pos_line.combo_parent_id.prep_line_ids.filtered(
                    lambda pl: pl.prep_order_id == line.prep_order_id
                )

Back to entity