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_ticket_id

Inputs Method Outputs
event_lines = self.filtered('event_id')
(self - event_lines).event_ticket_id = False
for line in event_lines:
            if line.event_id != line.event_ticket_id.event_id:
                line.event_ticket_id = False

Back to entity