[MERGE] merge from perf3 until merge
authorJosse Colpaert <jco@openerp.com>
Tue, 4 Mar 2014 16:19:44 +0000 (17:19 +0100)
committerJosse Colpaert <jco@openerp.com>
Tue, 4 Mar 2014 16:19:44 +0000 (17:19 +0100)
bzr revid: jco@openerp.com-20140304161944-hbb58wtdj2e4c2u7

1  2 
addons/stock/stock.py

@@@ -321,8 -321,10 +321,10 @@@ class stock_quant(osv.osv)
          move.refresh()
          if move.reserved_availability == move.product_qty and move.state in ('confirmed', 'waiting'):
              self.pool.get('stock.move').write(cr, uid, [move.id], {'state': 'assigned'}, context=context)
+         elif move.reserved_availability > 0 and not move.partially_available:
+             self.pool.get('stock.move').write(cr, uid, [move.id], {'partially_available': True}, context=context)
  
 -    def quants_move(self, cr, uid, quants, move, lot_id=False, owner_id=False, src_package_id=False, dest_package_id=False, context=None):
 +    def quants_move(self, cr, uid, quants, move, lot_id=False, owner_id=False, src_package_id=False, dest_package_id=False, location_dest_id = False, context=None):
          """Moves all given stock.quant in the destination location of the given move.
  
          :param quants: list of tuple(browse record(stock.quant) or None, quantity to move)