odoo/odoo#158166
Created by Mattis Megevand (mmeg)
Merged
at 432ae6445373f2aeafefb225eedfadf88d6a62b2
- label
- odoo-dev:15.0-opw-3759006-stock_move_quantity_miscalculation-mmeg
- head
- 136657fc335aa758982a6dc91977cebc8cdc6fea
- target
- 15.0
- merged
- 1 month ago by Logistics, William Henrotin (whe)
- forward-ports
- odoo/odoo#160258 targeting master
- odoo/odoo#160246 targeting saas-17.2
- odoo/odoo#160232 targeting saas-17.1
- odoo/odoo#160091 targeting 17.0
- odoo/odoo#160008 targeting saas-16.4
- odoo/odoo#159990 targeting saas-16.3
- odoo/odoo#159810 targeting 16.0
[FIX] mrp,stock: compute correct quantity for stock move
Steps to reproduce:
- Install MRP
- Enable packages and multi-step routes
- Enable two steps manufacturing
- Create a component and a product
- Create a BOM for the product and add the component
- Make an MO for 100 units of the product
- Go to the picking and make a move of 20 units of the component with a
destination package
- Put in pack
- Create the backorder and validate the transfer of the remaining
components
- Go back to the MO
Issues:
Units reserved is wrong. The problem is when we are unpacking, we were
using result package inside the key. But what we want is to remove
quantity from the package the quantity originate from.
opw-3759006