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

Module: Events Sales

Entity: sale.order.line

Compute Method: _compute_event_id

Inputs Method Outputs
event_lines = self.filtered(lambda line: line.product_id and line.product_id.service_tracking == 'event')
(self - event_lines).event_id = False
for line in event_lines:
            if line.product_id not in line.event_id.event_ticket_ids.product_id:
                line.event_id = False

Back to entity