Incorrect unit_price on purchase_line when using secondary unit on purchase_requisition
Since #10127 (closed), when using a secondary unit on a requisition, the unit_price defined on the purchase_line is not converted into the stock_unit. Probably, when using purchase_secondary_unit, we should add the requisition_line.unit in _group_purchase_line_key and defining the secondary unit et the secondary price unit on the purchase_line.
How to reproduce error:
- Define a purchasable product with a secondary unit
- Create a requisition with this product and a quantity in secondary unit and define a unit_price
- Process the requistion into purchase_request (quantity is then converted in stock_unit)
- Create Purchase from purchase_request: purchase_line has the quantity from the purchase_request (in stock_unit) but unit_price is the unit_price from the requisition (and then it's a unit_price for the secondary_unit).