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: res.company

Compute Method: _compute_sendcloud_default_integration_id

Inputs Method Outputs
for company in self:
            integrations = company.sendcloud_integration_ids
            integrations = integrations.filtered(
                lambda i: i.public_key and i.secret_key
            ).sorted(key=lambda i: i.sequence)
            company.sendcloud_default_integration_id = fields.first(integrations)

Back to entity