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

Module: Helpdesk Management

Entity: helpdesk.ticket

Compute Method: _compute_team_id

Inputs Method Outputs
for ticket in self:
            if not ticket.team_id and ticket.user_id.helpdesk_team_ids:
                # If no team is set, we default to the user's first team
                ticket.team_id = ticket.user_id.helpdesk_team_ids[0]

Back to entity