Comment 3 for bug 399817

Revision history for this message
Jan Verlaan (jan-verlaan) wrote : Re: [5.0] SO not marked picked when 2nd delivery canceled + status of 2nd delivery line

SOLUTION for the split order line and their line status.
Change in /addons/stock/wizard/wizard_partial_picking.py row 161

        if data['form']['move%s' % move.id] <> 0:
            new_obj = move_obj.copy(cr, uid, move.id,
                {
                    'product_qty' : data['form']['move%s' % move.id],
                    'product_uos_qty':data['form']['move%s' % move.id],
                    'picking_id' : new_picking,
==> 'state': 'assigned',
                    'state': 'draft',
                    'move_dest_id': False,
                    'price_unit': move.price_unit,
                })
to
        if data['form']['move%s' % move.id] <> 0:
            new_obj = move_obj.copy(cr, uid, move.id,
                {
                    'product_qty' : data['form']['move%s' % move.id],
                    'product_uos_qty':data['form']['move%s' % move.id],
                    'picking_id' : new_picking,
==> 'state': 'draft',
                    'move_dest_id': False,
                    'price_unit': move.price_unit,
                })

No solution yet for the sales order status, which is still 100% picked => NOK