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

Module: Employees

Entity: hr.department

Compute Method: _compute_company_id

Inputs Method Outputs
if self.parent_id and self.parent_id.company_id:
            self.company_id = self.parent_id.company_id

Back to entity