[FIX] purchase_requisition: fix multicurrency alternative
Steps to reproduce:
- Activate 2 currencies (assume EUR and USD, conversion rate: 1 EUR = 0.9 USD)
- Create new product P
- Purchase tab, add two vendors
- V_USD, currency = USD, price = 100
- V_EUR, currency = EUR, price = 101
- Create PO, vendor = V_USD, Currency = USD
- Add P, Unit price should be 100
- Alternative tab > Create alternative > Vendor = V_EUR
- Compare product lines
Issue:
The line with price = 100 USD is highlighted as being the cheapest option, but if we apply conversion rules,
101 EUR = 90.9 USD < 100 USD.
Solution:
Convert prices in company currency before comparing.
opw-3378253
closes odoo/odoo#129984
X-original-commit: 8e53914362eaf29675051e157dbcfdbfbdec88da
Signed-off-by: Tiffany Chang <tic@odoo.com>