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

Module: Route Planning Sale Stock Integration

Entity: sale.order

Compute Method: _compute_route_area_id

Inputs Method Outputs
  • company_id
  • partner_shipping_id
for order in self:
            company = order.company_id or self.env.company
            partner = order.partner_shipping_id.with_company(company)
            order.route_area_id = partner.route_area_id

Back to entity