Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Inventory
Entity: stock.move.line
Compute Method: _compute_product_uom_id
| Inputs | Method | Outputs |
|---|---|---|
|
- for line in self: - if not line.product_uom_id: - if line.move_id.product_uom: - line.product_uom_id = line.move_id.product_uom.id - else: - line.product_uom_id = line.product_id.uom_id.id |
|
