[stock] picking cancels done moves (5.0)
Bug #528320 reported by
Dukai Gábor
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
High
|
OpenERP R&D Addons Team 2 |
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.
Related branches
lp:~openerp-dev/openobject-addons/trunk-dev-addons_stock
- Mustufa Rangwala (Open ERP): Approve
- Bhumika Shrimali: Pending requested
- Stephane Wirtel (OpenERP): Pending requested
-
Diff: 429 lines (+148/-19)4 files modifiedscrum/scrum.py (+62/-9)
scrum/scrum_demo.xml (+75/-4)
scrum/scrum_view.xml (+10/-5)
scrum/wizard/scrum_backlog_sprint.py (+1/-1)
Changed in openobject-addons: | |
importance: | Undecided → High |
Changed in openobject-addons: | |
status: | Incomplete → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Confirmed |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
Changed in openobject-addons: | |
milestone: | none → 6.0-rc2 |
tags: | added: partial-delivery |
To post a comment you must log in.
Hello Dukai,
Sorry for the interruption.
Working on the situations provided by you:
Situation 1:
Make the picking done and let the 0 qty move be 0.
2 packings come into picture. If you cancel x picking, its correspondent moves are cancelled, which seems quite natural.
Situation 2:
Make the picking done and write the originally requested amount for move 3 instead of 0 in the partial picking wizard. Here its only 1 packing in the picture. If you cancel that picking, undoubtedly all the related moves have to be cancelled in order to affect the real/virtual stock.
I would like to ask you for more clarifications.
Thanks.