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_user_id

Inputs Method Outputs
for ticket in self:
            if ticket.team_id and ticket.user_id not in ticket.team_id.user_ids:
                # If the user is not part of the team, we remove the user
                ticket.user_id = False

Back to entity