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

Module: Purchase

Entity: purchase.bill.line.match

Compute Method: _compute_product_uom_qty

View 20.0
Inputs Method Outputs
  • product_id
  • line_uom_id
  • line_qty
  • product_uom_id
+ for line in self:
+             if line.product_id:
+                 line.product_uom_qty = line.line_uom_id._compute_quantity(line.line_qty, line.product_uom_id)
+             else:
+                 line.product_uom_qty = line.line_qty
  • product_uom_qty

Back to entity