-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] purchase_requisition: convert purchase price to current currency
Bug introduced in: odoo@8f96e08 Steps to reproduce the bug: - Activate 2 currencies (assume EUR and USD, conversion rate: 0.65 EUR = 1 USD) - Create new product “P1”: - Purchase tab: - add two vendors: - Vendor_USD, currency = USD, price = 100 - Vendor_EUR, currency = EUR, price = 80 - Create PO: - vendor = vendor_EUR - Currency = Eur - Add P1, Unit price should be 80 - Alternative tab > Create alternative > Vendor = Vendor_EUR - Compare product lines Issue: The line with price = 100 USD is highlighted as being the cheapest option, but if we apply conversion rules, 80 EUR = 123,07 USD > 100 USD. Solution: Before selecting the cheapest line, we convert the prices of the purchase order lines that are in a currency other than the current currency of the company. opw-3378253 closes odoo#135037 Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
- Loading branch information
1 parent
4f2da91
commit c452728
Showing
2 changed files
with
37 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters