delivery order with back order (after manual split) is wrongly indicated as shipped (and 100% picked)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP R&D Addons Team 3 |
Bug Description
Hey,
When we do a partial picking for a delivery order, if we pick the corresponding original stock.move (the one which is linked to procurement.order), the procurement.order workflow terminates and the picking status of sale order is set to 100%.
This is simply caused by the procurement>
Here is how to reproduce the bug:
Create a Sale Order, with one order line (CPU1 - 10) from stock. Validate.
In Delivery Order, split the stock move by assigning a production lot > prodlot: A, qty: 3
Process the Delivery Order, and put 0 as a quantity for the prodlot A.
A back order is created for prodlot A.
The other 7 CPU1 are Done.
Go to Sale Order, it is 100% picked. Procurement.order is Done.
We want the picking state to take into account back orders, and therefore the procurement.order should not be Done until all related stock.moves are Done (or cancel).
I use openerp 6.0.2. The behavior should be the same on the trunk version, as the check_move_done function is still the same.
A proposal of correction, taking into account the moves linked to sale order lines instead of moves linked to procurement order is linked as attachment. The case where no sale order is involved (from order point ?) should be analyzed.
Best,
Patrick
Related branches
- Fabien (Open ERP): Disapprove
- Rucha (Open ERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 16 lines (+5/-1)1 file modifiedsale/sale.py (+5/-1)
- Olivier Dony (Odoo): Disapprove
-
Diff: 19 lines (+8/-1)1 file modifiedsale/sale.py (+8/-1)
description: | updated |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
summary: |
- delivery order with back order is 100% picked + delivery order with back order (after manual split) is wrongly indicated + as 100% picked |
summary: |
delivery order with back order (after manual split) is wrongly indicated - as 100% picked + as shipped (and 100% picked) |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
tags: | added: backorder |
tags: |
added: partial-delivery removed: backorder |
I am setting this bug to addons3 team because It should be fix from sale Itself.
Thanks.