From 5b4e4fc2a3e42511dff33e63a40d80fe4bfbb7f8 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Thu, 17 Apr 2014 17:20:02 +0200 Subject: [PATCH] [TMP] stock: temporary removal of check_quant_history to green the redbot (will be definitively removed later but in a cleaner way) bzr revid: qdp-launchpad@openerp.com-20140417152002-6tl30iaf6m03hyyk --- addons/stock/stock.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 7ed13fe2714..7402514e4c1 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2200,7 +2200,6 @@ class stock_move(osv.osv): dom = main_domain + self.pool.get('stock.move.operation.link').get_specific_domain(cr, uid, record, context=context) quants = quant_obj.quants_get_prefered_domain(cr, uid, ops.location_id, move.product_id, record.qty, domain=dom, prefered_domain=prefered_domain, fallback_domain=fallback_domain, restrict_lot_id=move.restrict_lot_id.id, restrict_partner_id=move.restrict_partner_id.id, context=context) - self.check_quants_history(cr, uid, move, quants, context=context) if ops.result_package_id.id: #if a result package is given, all quants go there quant_dest_package_id = ops.result_package_id.id @@ -2224,7 +2223,6 @@ class stock_move(osv.osv): self.check_tracking(cr, uid, move, move.restrict_lot_id.id, context=context) qty = move_qty[move.id] quants = quant_obj.quants_get_prefered_domain(cr, uid, move.location_id, move.product_id, qty, domain=main_domain, prefered_domain=prefered_domain, fallback_domain=fallback_domain, restrict_lot_id=move.restrict_lot_id.id, restrict_partner_id=move.restrict_partner_id.id, context=context) - self.check_quants_history(cr, uid, move, quants, context=context) quant_obj.quants_move(cr, uid, quants, move, move.location_dest_id, lot_id=move.restrict_lot_id.id, owner_id=move.restrict_partner_id.id, context=context) #unreserve the quants and make them available for other operations/moves quant_obj.quants_unreserve(cr, uid, move, context=context)