Comment 12 for bug 646224

Revision history for this message
Omar (Pexego) (omar7r) wrote :

Hi Jay,

Other case, with your patch, if I confirm the sale order, it creates one picking, then I cancel this picking, shipped is not true, it works, but, I return to confirm this sale order and it creates one new picking, therefore if I cancel the current picking it sets shipped to True.

Can we manage the partial picking case checking backorder_id field on stock.picking?

Like:

             call_ship_end = True
             if pick.sale_id:
                 for picks in pick.sale_id.picking_ids:
- if picks.state not in ('done','cancel'):
+ if picks.state in ('done','cancel') and (not picks.backorder_id or picks.backorder_id.state != 'done'):
                         call_ship_end = False
                         break
                 if call_ship_end: