[REF] stock: don't try to reconcile negative quants on unreservation

bzr revid: qdp-launchpad@openerp.com-20140417153924-3w9j925ht892vbq0
This commit is contained in:
Quentin (OpenERP)
2014-04-17 17:39:24 +02:00
parent 5b4e4fc2a3
commit 2b2b360fde
-4
View File
@@ -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