Comment 3 for bug 1222680

Revision history for this message
Rifakat Husen (OpenERP) (rha-openerp) wrote :

Dear Moisés,
I think this is normal when you process shipment(wizard lines) with no qty and that will create empty backorder as you haven't received anything. One should avoid this action. Does it make sense to process a shipment which is having no goods?

What this patch does: It marks stock moves Available when you confirm your shipment. So when you process wizard it will never have qty as 0. And ultimately empty backorder will never be generated.

But my point here is, why your reception wizard lines having no qty? It's because you picking lines are in state 'Waiting Availability'. And when it is reception/incoming shipment, reception lines should not be in 'Waiting Availability'. They should always be Available as you are getting goods from your supplier. IMO, bug is that the reception lines are marked as 'Waiting Availability' as soon as you confirm you shipment.

I would like to draw your attention for behavior of 7.0 and earlier versions. In 6.1/6.0, there was a button `Check Availability` and we used to click that button to set any shipment Available. We have removed this button in 7.0(correct, useability purpose we don't need this button) but now we have no way to set shipment as available except doing it form shipment lines. So with my patch, this 'Check Availability' button action is also taken care while you confirm the shipment.

Also note that when you create a shipment with no qty in stock moves and processing it will not create any backorder.
Please let me know if I am missing anything.

Regards,
Rifakat