← Back to team overview

credativ team mailing list archive

[Bug 796320] Re: incoming shipment does not trigger corresponding delivery order

 

Hello Patrick,

Thanks for your good explanation.
You are right according to comment #3 both have the same behavior but in current system both way have not same behavior becasue we need to set the stock move of procurement order field as a "one2many" instead of "many2one".Because procurement order should check all the stock moves according to split.Right now it is not possbile because stock move field is "many2one".


According your scenario after spliting 2 move generated.
-> First Case
    [1] for qty = 70/done
    [2] for qty= 130/available

-> Second Case
    [1] for qty = 70/available
    [2] for qty= 130/done

so in the stock move of procurement order always set the move for qty=70
becasue it is the first move.According to Second case it's work perfect
becasue move is "available" state for qty=70.In the First case move is
"done" for qty=70 so procurement come in "done" state.


Currently its not feasible because Its many affects.So currently setting this bug as wishlist.

Thanks.

** Changed in: openobject-addons
   Importance: Medium => Wishlist

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/796320

Title:
  incoming shipment does not trigger corresponding delivery order

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Hey,

  This bug is related to the way stock.picking (especially Delivery
  Order) are handled. When the Delivery Order is created, one stock.move
  is produced corresponding to the sale order line. The conception
  problem comes from the fact that this stock.move is considered to
  represent the stock.picking entirely in its relation with other
  objects (sale order, procurement order, purchase order). This leads to
  serious functional miss behaviors, and would deserve some more
  conception and specification time.

  A related bug for this conception problem is
  https://bugs.launchpad.net/openobject-addons/+bug/794412.

  1,2) Reproduce the functional conception problem and observed result

  - Consider a sale order with "on order" procurement method. Let say you sell 200 CPU1, with 100 CPU1 in your stock (important for what follows).
  - Confirm the sale order, the corresponding stock.picking with one stock.move is created. Along with a procurement.order.
  - Launch the scheduler, a purchase.order (rfq) is created.
  - Validate the purchase.order, the incoming shipment, stock.move are created.
  - Back to the Delivery Order, put the first line in a new pack, leave 70 CPU1 in the current pack.
  - You change your mind, you want to deliver these 70 CPU1 partially. Click Check Availability, the first line (70) becomes available. Click Process, and process the first stock.move. Its state is Done. (sale order is 100% picked, related to bug 794412).
  - Now go back to the Incoming Shipment. Process it entirely.
  - The remaining stock.move in the Delivery Order is not set to Available

  stock.move split are simply not considered; the original stock.move is
  considered only.

  3) expected result

  - the remaining stock.move should benefit the newly received products
  first, and thus should be forced to available.

  4, 5) ubuntu 10.04. openEPR 6.0.2.

  A deep rethink/rebuild of pick-pack-shipment processes should be
  engaged. This bug's importance should not be considered as low.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/796320/+subscriptions