From 2b2b360fde73e07dbab598db164714bd4bc6e2e6 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Thu, 17 Apr 2014 17:39:24 +0200 Subject: [PATCH] [REF] stock: don't try to reconcile negative quants on unreservation bzr revid: qdp-launchpad@openerp.com-20140417153924-3w9j925ht892vbq0 --- addons/stock/stock.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 7402514e4c1..f74aa4c4452 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -555,10 +555,6 @@ class stock_quant(osv.osv): if move.partially_available: self.pool.get("stock.move").write(cr, uid, [move.id], {'partially_available': False}, context=context) self.write(cr, SUPERUSER_ID, related_quants, {'reservation_id': False}, context=context) - ancestors = self.find_move_ancestors(cr, uid, move, context=context) - if move.state == 'waiting' or ancestors: - for quant in move.reserved_quant_ids: - self._quant_reconcile_negative(cr, uid, quant, move, context=context) def _quants_get_order(self, cr, uid, location, product, quantity, domain=[], orderby='in_date', context=None): ''' Implementation of removal strategies