diff --git a/addons/mrp/models/stock_move.py b/addons/mrp/models/stock_move.py index f2e82cfcba6..eb699778efe 100644 --- a/addons/mrp/models/stock_move.py +++ b/addons/mrp/models/stock_move.py @@ -619,6 +619,8 @@ class StockMove(models.Model): res = super()._get_relevant_state_among_moves() if res == 'partially_available'\ and self.raw_material_production_id\ - and all(move.should_consume_qty and float_compare(move.quantity, move.should_consume_qty, precision_rounding=move.product_uom.rounding) >= 0 for move in self): + and all(move.should_consume_qty and float_compare(move.quantity, move.should_consume_qty, precision_rounding=move.product_uom.rounding) >= 0 + or (float_compare(move.quantity, move.product_uom_qty, precision_rounding=move.product_uom.rounding) >= 0 or (move.manual_consumption and move.picked)) + for move in self): res = 'assigned' return res