Split Stock move breaks the destination moves logic logic
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Low
|
OpenERP Publisher's Warranty Team | |||
OpenERP Community Backports (Addons) | Status tracked in 7.0 | |||||
6.1 |
New
|
Undecided
|
Yann Papouin | |||
7.0 |
New
|
Undecided
|
Unassigned |
Bug Description
How to reproduce the bug
Context: have pull flow generating a 2 moves, linked together via move_dest_id field.
Create a stock picking with one move (quantity =10)
Split one stock move with new serial number
In the stock picking now there are 2 SM with same product and same move_dest_id and complementary quantities (7+3)
When processing the quantity in full, the second move in move_dest_id is still in waiting for another move
It seems due to the following code in stock/stock.py (action_done around line 2400):
if move.move_
# Downstream move should only be triggered if this move is the last pending upstream move
if not other_upstream_
The first move will always find the second move as other_upstream_
Related branches
- Paulius Sladkevičius @ hbee (community): Approve (test)
- Naresh(OpenERP): Pending requested
-
Diff: 35 lines (+10/-3)1 file modifiedstock/stock.py (+10/-3)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | New → Incomplete |
status: | Incomplete → Confirmed |
importance: | Undecided → Low |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Hi,
I have fixed it in, lp:~openerp-dev/openobject-addons/7.0-opw-603094-rha
Revision 9782, <email address hidden>
Please let me know if you face any problem. I will mark this bug report as Fixed Committed.
Regards,
Rifakat