[6.1][7.0][trunk][sale] Recreate Packing create duplicates

Bug #1249345 reported by Yann Papouin
6
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

Changed in ocb-addons:
assignee: nobody → Yann Papouin (yann-papouin)
importance: Undecided → Low
Changed in ocb-addons:
assignee: Yann Papouin (yann-papouin) → nobody
Revision history for this message
Amit Parik (amit-parik) wrote :

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!

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Yann Papouin (yann-papouin) wrote :

As the bug lp:947838 is set to an opinion state, it is not included in default launchpad search results that's why I didn't found it.
It seems to be the same issue but the fix proposal is different.

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Yann,

Linked your branch with lp:947838, and marking this as a duplicate of lp:947838.

Thank you!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.