[FIX] mrp: BOM in wrong company
[FIX] mrp: BOM in wrong company

- Create 2 companies C1 & C2
- Creae a product P
- In C1, set the routes as MTO + Buy, add a supplier
- In C2, add a BOM in kit for P
- Go back to C1 with C2 as an allowed company
- Create a SO for 1 unit of P, confirm

The PO for P is not created.

It occurs because the BOM of C2 is retrieved when running the
procurement, while it shouldn't be.

opw-2260945

closes odoo/odoo#51779

X-original-commit: 96b0dcf9e51f5a924e2cbf618c2ee5462cc1f03f
Signed-off-by: Arnold Moyaux <1b212d10e7a24dd6fb14e0bb127a40daacfa07e4@users.noreply.github.com>
Signed-off-by: Nicolas Martinelli (nim) <771435c469f83f6aa9c405ac5e1ed06314a94f2d@odoo.com>

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo