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

Module: Sendcloud Shipping

Entity: delivery.carrier

Compute Method: _compute_sendcloud_country_ids

Inputs Method Outputs
countries = self.env["sendcloud.shipping.method.country"].search([])
for carrier in self:
            carrier.sendcloud_country_ids = countries.filtered(
                lambda country, current_carrier=carrier: country.company_id
                == current_carrier.company_id
                and country.method_code == current_carrier.sendcloud_code
            )

Back to entity