← Back to team overview

openerp-expert-production team mailing list archive

[Bug 528320] Re: [stock] picking cancels done moves (5.0)

 

To be precise (good accouting practice requires this)
"Cancel" of a "done" picking must generate a new picking and all dependant documents (except payments of course) with "negative" qty and value of the original document(s).
For this to happen OpenER absolutely needs to know ALL relations between SO/PO - Picking - Invoice (which currently is not the case)
I know negative values are not allowed everywhere .... hence devit/credit must be reversed ....

These new documents follow the workflow of the original documents and
can be reconciled automatically.

A problem persists - how to handle price differences of stock moves
after the original move (only if average price is selected)

-- 
[stock] picking cancels done moves (5.0)
https://bugs.launchpad.net/bugs/528320
You received this bug notification because you are a member of OpenERP's
Manufacturing Experts, which is a direct subscriber.

Status in OpenObject Addons Modules: Incomplete

Bug description:
Hi!
5.0 latest bzr.
When a picking is cancelled, it cancels all moves, even if the moves are in done state. 'done' moves should never be altered.

Test case:
A picking with 3 moves. 2 of them are assigned, 1 is only confirmed because it doesn't have enough stock. Make the picking done and write the originally requested amount for move 3 instead of 0 in the partial picking wizard. Force the picking. 
Now there are 2 done lines and an assigned line. The stock worker changes his mind and cancels the picking. All 3 lines become cancelled.

Fix is provided in the attached patch.