Comment 3 for bug 796320

Revision history for this message
Patrick Amstutz (patrick-amstutz) wrote : Re: incoming shipment does not trigger corresponding delivery order

Hey Amit,

The Incoming Shipment should be related to the entire Delivery Order. Here, the Incoming Shipment is only related to the first stock.move.

I demonstrate here the inconsistency of the present implementation:

In stock: 100 CPU1
Sale Order: 200 CPU1 on order

Create and validate the sale.order. Process procurement.order, validate purchase.order. Go to the Delivery Order. From there two different scenarios which should give the same result, but do not:

1)

- put the stock.move in a new pack, leave 70 CPU1
- click check availability, first line is available.
- go to incoming shipment, process.

-> the second line of the delivery order is NOT available

2)

- put the stock.move in a new pack, leave 130 CPU1
- click check availability, second line is available
- go to incoming shipment, process.

-> the first line of the delivery order is available (both lines are available actually)

Both procedures are functionally the same, please Amit, explain me why we do not get the same behavior. Thanks.