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

Module: Base

Entity: res.company

Compute Method: _compute_color

View 19.0
Inputs Method Outputs
  • root_id
  • root_id.partner_id
  • root_id.partner_id.color
  • root_id._origin
  • root_id._origin.id
- for company in self:
-             company.color = company.root_id.partner_id.color or (company.root_id._origin.id % 12)
  • color

Back to entity