From: ksa (Open ERP) Date: Thu, 3 Feb 2011 05:56:40 +0000 (+0530) Subject: [FIX]:Internal Stock move have problem if wearhouse input location = Input X-Git-Tag: 6.1.0-rc1-addons~4231^2~18^2 X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=e58d1c6266c3fd99348b7b93dc641b7141767d62;p=odoo%2Fodoo.git [FIX]:Internal Stock move have problem if wearhouse input location = Input lp bug: https://launchpad.net/bugs/710717 fixed bzr revid: ksa@tinyerp.co.in-20110203055640-cg0uasduxxgafttp --- diff --git a/addons/stock/stock.py b/addons/stock/stock.py index ee4665c..5f3f347 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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)