[FIX]:Internal Stock move have problem if wearhouse input location = Input
authorksa (Open ERP) <ksa@tinyerp.co.in>
Thu, 3 Feb 2011 05:56:40 +0000 (11:26 +0530)
committerksa (Open ERP) <ksa@tinyerp.co.in>
Thu, 3 Feb 2011 05:56:40 +0000 (11:26 +0530)
lp bug: https://launchpad.net/bugs/710717 fixed

bzr revid: ksa@tinyerp.co.in-20110203055640-cg0uasduxxgafttp

addons/stock/stock.py

index ee4665c..5f3f347 100644 (file)
@@ -2130,7 +2130,7 @@ class stock_move(osv.osv):
             prodlot_id = partial_datas and partial_datas.get('move%s_prodlot_id' % (move.id), False)
             if prodlot_id:
                 self.write(cr, uid, [move.id], {'prodlot_id': prodlot_id}, context=context)
-            if move.state not in ('confirmed','done'):
+            if move.state not in ('confirmed','done','assigned'):
                 self.action_confirm(cr, uid, move_ids, context=context)
 
         self.write(cr, uid, move_ids, {'state': 'done', 'date_planned': time.strftime('%Y-%m-%d %H:%M:%S')}, context=context)