Hello, Thanks for the report and patch, it was merged in 7.0
revno: 9939 [merge] revision-id: [email protected] ** Changed in: openobject-addons Status: New => Fix Released ** Changed in: openobject-addons Importance: Undecided => Low -- 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): Fix Released Status in OpenERP Addons 7.0 series: Fix Committed 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 _______________________________________________ Mailing list: https://launchpad.net/~openerp-india Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-india More help : https://help.launchpad.net/ListHelp

