[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:
parent
a2a8dffdf7
commit
a8f47d3747
|
@ -955,7 +955,10 @@ class mrp_production(osv.osv):
|
||||||
partner_id = routing_loc.partner_id and routing_loc.partner_id.id or False
|
partner_id = routing_loc.partner_id and routing_loc.partner_id.id or False
|
||||||
|
|
||||||
# Take next Sequence number of shipment base on type
|
# 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, {
|
picking_id = stock_picking.create(cr, uid, {
|
||||||
'name': pick_name,
|
'name': pick_name,
|
||||||
|
|
Loading…
Reference in New Issue