From bed149310f6c9cea3990b34412f619559968021c Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Mon, 30 Nov 2009 13:16:22 +0530 Subject: [PATCH] [FIX] Sale : State was written wrongly lp bug: https://launchpad.net/bugs/488809 fixed bzr revid: jvo@tinyerp.com-20091130074622-m3p60lsti3dn3shv --- addons/sale/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.