[FIX] Sale : State was written wrongly

lp bug: https://launchpad.net/bugs/488809 fixed

bzr revid: jvo@tinyerp.com-20091130074622-m3p60lsti3dn3shv
This commit is contained in:
Jay (Open ERP)
2009-11-30 13:16:22 +05:30
parent d2d1bece58
commit bed149310f
+1 -1
View File
@@ -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.