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

Compute Method: _compute_allowed_uom_ids

View 19.0 View 20.0
Inputs Method Outputs
  • product_id
  • product_id.uom_id
  • product_id.uom_ids
for move in self:
-             move.allowed_uom_ids = move.product_id.uom_id | move.product_id.uom_ids | move.sudo().product_id.seller_ids.product_uom_id
+             move.allowed_uom_ids = move.product_id._get_available_uoms() | move.sudo().product_id.seller_ids.uom_id
  • allowed_uom_ids

Back to entity