[FIX] mrp: default UoM when registering lot
[FIX] mrp: default UoM when registering lot

- Create a products A
- Create a products B
  Tracked by lot
  UoM: kg
- Get some quantity in stock for B
- Create a BOM for A: 2g of B to produce A
- Create a MO for A, Produce

In the lot registration wizard, 2kg of B are suggested instead of 2g of
B.

In this case, the UoM of the product is taken instead of the move.
However, it should only be the case if the product is tracked by unique
S/N.

opw-2200263

closes odoo/odoo#47019

X-original-commit: 9d114eb7a48b82b76e9c900cce22dc5022206367
Signed-off-by: Nicolas Martinelli (nim) <771435c469f83f6aa9c405ac5e1ed06314a94f2d@odoo.com>

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