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

Module: Odoo Repository Migration Data

Entity: odoo.module.branch.migration

Compute Method: _compute_display_name

View 18.0
Inputs Method Outputs
  • module_branch_id
  • module_branch_id.module_id
  • module_branch_id.module_id.name
  • source_branch_id
  • source_branch_id.name
  • target_branch_id
  • target_branch_id.name
+ for rec in self:
+             rec.display_name = (
+                 f"{rec.module_branch_id.module_id.name}: "
+                 f"{rec.source_branch_id.name} -> {rec.target_branch_id.name}"
+             )
  • display_name

Back to entity