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

Compute Method: _compute_uom_id

Inputs Method Outputs
for rec in self:
            if not rec.uom_id:
                rec.uom_id = rec.product_id.uom_id if rec.product_id else rec.product_tmpl_id.uom_id

Back to entity