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

Module: Resource

Entity: resource.calendar.leaves

Compute Method: _compute_company_id

Inputs Method Outputs
for leave in self:
            leave.company_id = leave.calendar_id.company_id or self.env.company

Back to entity