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

Module: Transport

Entity: tms.order

Compute Method: _compute_crew_ids_domain

Inputs Method Outputs
all_crews = self.env["tms.crew"].search([])
all_crews_ids = all_crews.ids
if self.tms_team_id:
            self.crew_ids_domain = [(6, 0, self.tms_team_id.crew_ids.ids)]
        else:
            self.crew_ids_domain = [(6, 0, all_crews_ids)]

Back to entity