Files
odoo_source/addons/stock/models
Djamel Touati fb16a3411e [FIX] stock: don't check 'scrap' move when validating picking
Steps to reproduce the bug:
- Create a storable product “P1”.
- Update its quantity to 10.
- Create a delivery picking:
    - Add the product “P1” with 10 units.
    - Mark as to do.
    - Scrap 1 quantity of “P1”.
- Try to validate the picking.

Problem:
A wizard asking to create a backorder is triggered. This occurs because
the move of the scrap is created, linked to the picking, and marked as
'done' (so, picked). Therefore, when validating the picking, we will
checks if all the moves are picked (Even if not picked, it will
work because we'll set them all to 'picked'). but as the first move is
not picked and the scrap one is picked, the backorder wizard is raised.

**opw-3821869**

closes odoo/odoo#163395

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2024-04-26 17:18:03 +00:00
..
2024-04-12 16:57:51 +00:00