[6.1][7.0][trunk][sale] Recreate Packing create duplicates
Bug #1249345 reported by
Yann Papouin
This bug report is a duplicate of:
Bug #947838: [6.0][6.1][7.0][trunk][sale] Sale exception: Recreate Packing duplicates confirmed moves.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Incomplete
|
Undecided
|
Unassigned | ||
OpenERP Community Backports (Addons) |
New
|
Low
|
Unassigned | ||
6.1 |
Fix Committed
|
Undecided
|
Yann Papouin |
Bug Description
The "Recreate Packing" that is used to fix a sale order exception is actually recreating ALL procurements without checking existing ones. That leads to have for the same line multiple/duplicates :
- Picking
- Moves
- Purchase orders
- Production orders
A proper way would be to check for each sale order line the procurement status and recreate a procurement ONLY if the existing one is canceled.
If it's the case, then a new picking is created and attached to current sale order with the new procurements and matching lines watch their state reset to 'confirmed'. (Existing moves related to the previous procurement in these lines are canceled).
Related branches
lp://staging/~yann-papouin/ocb-addons/6.1-bug-947838-sale-recreate-packing-duplicates
Ready for review
for merging
into
lp://staging/ocb-addons/6.1
- Holger Brunn (Therp): Approve (code review)
-
Diff: 32 lines (+14/-1)1 file modifiedsale/sale.py (+14/-1)
Changed in ocb-addons: | |
assignee: | nobody → Yann Papouin (yann-papouin) |
importance: | Undecided → Low |
Changed in ocb-addons: | |
assignee: | Yann Papouin (yann-papouin) → nobody |
To post a comment you must log in.
Hello Yaan,
This kind of same bug reported since ago, would you please check lp:947838.
I think your bug is duplicate of lp:947838.
Anxious to know your answer for this.
Thank you!