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

Compute Method: _compute_job_title

View 20.0
Inputs Method Outputs
  • job_id
  • is_custom_job_title
  • job_id.name
+ for version in self.filtered('job_id'):
+             if version._origin.job_id != version.job_id or not version.is_custom_job_title:
+                 version.job_title = version.job_id.name
  • job_title

Back to entity