← Back to team overview

openerp-india team mailing list archive

[Bug 1290509] [NEW] Cancelling a procurement always makes a stock move available

 

Public bug reported:

When a procurement order is cancelled (manually or by cancelling a draft
Make to Order PO), any corresponding stock move 'waiting another move'
gets automatically set to 'available', regardless of current stock
level. Instead, it should set the product to 'waiting availability', and
immediately try to reserve from stock (same result, unless there is not
enough stock on hand).

Steps to reproduce:
1.) Create product A (type = stockable product, procure method = make to order, supply method = buy, qty on hand = 0)
2.) Create product B(type = stockable product, procure method = make to order, supply method = manufacture, qty on hand = 0)
3.) Set a BoM on product B, which contains product A.
4.) Create a sale order for product B.
5.) The internal move for the resulting manufacturing order should have a line for product A in 'waiting another move' status, and a draft PO for product A should have been created.
6.) Now cancel that draft PO and view the internal move again. The line for product A is 'available', even though we have 0 on hand.


The current behavior causes two problems:

1.) In the case where we cancel a draft MTO PO, and do not have have the goods on hand, the status of 'available' is very misleading.
2.) Since the action_cancel() function just changes the state of the stock move without triggering any workflows/functions of the parent picking, an internal move can get stuck in 'waiting availability' when all of its moves are available.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

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

Title:
  Cancelling a procurement always makes a stock move available

Status in OpenERP Addons (modules):
  New

Bug description:
  When a procurement order is cancelled (manually or by cancelling a
  draft Make to Order PO), any corresponding stock move 'waiting another
  move' gets automatically set to 'available', regardless of current
  stock level. Instead, it should set the product to 'waiting
  availability', and immediately try to reserve from stock (same result,
  unless there is not enough stock on hand).

  Steps to reproduce:
  1.) Create product A (type = stockable product, procure method = make to order, supply method = buy, qty on hand = 0)
  2.) Create product B(type = stockable product, procure method = make to order, supply method = manufacture, qty on hand = 0)
  3.) Set a BoM on product B, which contains product A.
  4.) Create a sale order for product B.
  5.) The internal move for the resulting manufacturing order should have a line for product A in 'waiting another move' status, and a draft PO for product A should have been created.
  6.) Now cancel that draft PO and view the internal move again. The line for product A is 'available', even though we have 0 on hand.

  
  The current behavior causes two problems:

  1.) In the case where we cancel a draft MTO PO, and do not have have the goods on hand, the status of 'available' is very misleading.
  2.) Since the action_cancel() function just changes the state of the stock move without triggering any workflows/functions of the parent picking, an internal move can get stuck in 'waiting availability' when all of its moves are available.

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


Follow ups

References