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

Module: Products & Pricelists

Entity: product.template

Compute Method: _compute_base_unit_name

View 20.0
Inputs Method Outputs
  • base_unit_id
  • base_unit_id.name
  • uom_name
+ for template in self:
+             template.base_unit_name = template.base_unit_id.name or template.uom_name
  • base_unit_name

Back to entity