diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 0b3116f5fe0..a7814e110ac 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -517,7 +517,7 @@ class sale_order(osv.osv): for move in stock_move_obj.browse( cr, uid, move_ids ): #if one of the related order lines is in state draft, auto or confirmed #this order line is not yet delivered - if move.state in ('draft', 'auto', 'confirmed'): + if move.state in ('draft', 'waiting', 'confirmed'): pending_deliveries = True # Reason => if there are no move lines,the following condition will always set to be true,and will set SO to 'DONE'. # Added move_ids check to SOLVE.