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

Module: Partner Title

Entity: res.partner

Compute Method: _compute_name_with_title

View 19.0
Inputs Method Outputs
  • name
  • is_company
  • title_id
  • title_id.shortcut
  • title_id.name
+ for partner in self:
+             name = partner.name
+             if not partner.is_company and partner.title_id:
+                 title = partner.title_id.shortcut or partner.title_id.name
+                 name = " ".join([title, name])
+             partner.name_with_title = name
  • name_with_title

Back to entity