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

Module: Appraisal Oca

Entity: hr.appraisal.template

Compute Method: _compute_is_default

Inputs Method Outputs
  • id
default_template_id = int(
            self.env["ir.config_parameter"]
            .sudo()
            .get_param("hr_appraisal_oca.default_appraisal_template_id", 0)
        )
for rec in self:
            rec.is_default = rec.id == default_template_id

Back to entity