[FIX] sale_mrp: find BOM
[FIX] sale_mrp: find BOM

1. Activate the variant option on sale settings
2. Create a product and set invoicing on delivered qty and make it a
   stockable product
3. Create 2 attributes, like color red and color blue
4. Odoo creates 2 variants
5. Make a BoM on the product with color red (So on Bom select the
   product template and the product variant)
6. Set the Bom as "Ship this product as a set of components (kit)"
7. Now create a sale order with sale order line for the product variant
   BLUE
8. Delivery order is created, deliver the whole delivery order
9. Go back to sale order and see that delivered qty is not updated and
   thus we can not invoice the lines

opw-706423

Elico-Corp/odoo_OCB,dfang/odoo,hip-odoo/odoo,ygol/odoo,ygol/odoo,ygol/odoo,dfang/odoo,Elico-Corp/odoo_OCB,ygol/odoo,hip-odoo/odoo,hip-odoo/odoo,bplancher/odoo,dfang/odoo,dfang/odoo,Elico-Corp/odoo_OCB,laslabs/odoo,dfang/odoo,ygol/odoo,Elico-Corp/odoo_OCB,Elico-Corp/odoo_OCB,hip-odoo/odoo,bplancher/odoo,bplancher/odoo,laslabs/odoo,bplancher/odoo,ygol/odoo,hip-odoo/odoo,laslabs/odoo,bplancher/odoo,ygol/odoo,laslabs/odoo,bplancher/odoo,hip-odoo/odoo,dfang/odoo,Elico-Corp/odoo_OCB,laslabs/odoo,laslabs/odoo