[MERGE] [FIX] mrp: correctly handle internal type for stock.picking on manufacturing order

lp bug: https://launchpad.net/bugs/1117229 fixed

bzr revid: mat@openerp.com-20131119162522-x4fw8hluvfzt27ha
This commit is contained in:
Martin Trigaux 2013-11-19 17:25:22 +01:00
parent a2a8dffdf7
commit a8f47d3747
1 changed files with 4 additions and 1 deletions

View File

@ -955,7 +955,10 @@ class mrp_production(osv.osv):
partner_id = routing_loc.partner_id and routing_loc.partner_id.id or False
# Take next Sequence number of shipment base on type
pick_name = ir_sequence.get(cr, uid, 'stock.picking.' + pick_type)
if pick_type!='internal':
pick_name = ir_sequence.get(cr, uid, 'stock.picking.' + pick_type)
else:
pick_name = ir_sequence.get(cr, uid, 'stock.picking')
picking_id = stock_picking.create(cr, uid, {
'name': pick_name,