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

Module: Field Service

Entity: fsm.order

Compute Method: _compute_team_id

Inputs Method Outputs
cached_teams = dict()
for order in self:
            team = order.location_id.team_id
            if not team:
                order_key = order.env.company
                team = cached_teams.get(order_key)
                if not team:
                    team = cached_teams[order_key] = order._default_team_id()

            order.team_id = team

Back to entity