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

Module: Repairs

Entity: repair.order

Compute Method: _compute_has_uncomplete_moves

View 19.0 View 20.0
Inputs Method Outputs
  • move_ids
for repair in self:
-             repair.has_uncomplete_moves = any(move.product_uom and move.product_uom.compare(move.quantity, move.product_uom_qty) < 0 for move in repair.move_ids)
+             repair.has_uncomplete_moves = any(move.uom_id and move.uom_id.compare(move.quantity, move.product_uom_qty) < 0 for move in repair.move_ids)
  • has_uncomplete_moves

Back to entity