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.partner

Compute Method: _compute_company_registry_label

View 18.0
Inputs Method Outputs
  • country_id
  • country_id.code
+ label_by_country = self._get_company_registry_labels()
+ for company in self:
+             country_code = company.country_id.code
+             company.company_registry_label = label_by_country.get(country_code, _("Company ID"))
  • company_registry_label

Back to entity