Skip to content
Snippets Groups Projects
Commit 0665cebe authored by István Csányi's avatar István Csányi Committed by Nicolas Martinelli
Browse files

[FIX] mrp: incorrect outgoing qty


- Create a new Product
- Add a BOM to this product
- Set the BOM to be a kit
- Add components to the BOM
- Create a PO for the components for a qty of 5
- Confirm the PO but don't transfer the products
- Check the phantom kits outgoing_qty and incoming_qty they will match

A Phantom Kit Products outgoing_qty and incoming_qty are identical

Closes #43447

closes odoo/odoo#43584

X-original-commit: 4b2e235b
Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent e290a113
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ class ProductProduct(models.Model):
product.virtual_available = min(ratios_virtual_available) // 1
product.qty_available = min(ratios_qty_available) // 1
product.incoming_qty = min(ratios_incoming_qty) // 1
product.outgoing_qty = min(ratios_incoming_qty) // 1
product.outgoing_qty = min(ratios_outgoing_qty) // 1
product.free_qty = min(ratios_free_qty) // 1
super(ProductProduct, self - kits)._compute_quantities()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment