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

Module: Helpdesk Mgmt Fieldservice

Entity: helpdesk.ticket

Compute Method: _compute_fsm_location_id

Inputs Method Outputs
for rec in self:
            if not rec.partner_id:
                continue
            if (
                rec.partner_id.commercial_partner_id
                == rec.fsm_location_id.commercial_partner_id
            ):
                continue
            if rec.partner_id.service_location_id:
                rec.fsm_location_id = rec.partner_id.service_location_id
            elif rec.partner_id.commercial_partner_id.service_location_id:
                rec.fsm_location_id = (
                    rec.partner_id.commercial_partner_id.service_location_id
                )

Back to entity