[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:
+1
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user