From a5bdbbb73246853cdcfe41f0a4483ce4a1a01899 Mon Sep 17 00:00:00 2001 From: "Ferdinand @ ChriCar" <> Date: Mon, 24 May 2010 16:10:14 +0530 Subject: [PATCH] [FIX] Stock : Check on production lot corrected for move lp bug: https://launchpad.net/bugs/582823 fixed bzr revid: jvo@tinyerp.com-20100524104014-1xbfhkhmx7yc38tr --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 27930c8a3e7..7ef8920f305 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1205,7 +1205,7 @@ class stock_move(osv.osv): def _check_product_lot(self, cr, uid, ids): for move in self.browse(cr, uid, ids): - if move.prodlot_id and (move.prodlot_id.product_id.id != move.product_id.id): + if move.prodlot_id and move.state == 'done' and (move.prodlot_id.product_id.id != move.product_id.id): return False return True