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

Module: Partner language according country

Entity: res.partner

Compute Method: _compute_lang

Inputs Method Outputs
  • country_id
  • country_id.lang
if hasattr(super(), "_compute_lang"):
            res = super()._compute_lang()
for item in self:
            if item.country_id.lang:
                item.lang = item.country_id.lang
if hasattr(super(), "_compute_lang"):
            return res

Back to entity