odoo/odoo#102920

Created by Bugfix, Séna Serge Nshimiyimana (sesn)
Merged at ab6fe46e8a66fe325c452e422fec984fde687d20

Statuses:

label
odoo-dev:13.0-opw-3002376-apply_pricelist_formula_rounding_after_currency_conversion-sesn
head
0ee71732eed3e8ce77b0677c506b3ebd603eab7e
merged
3 years ago by Sales, Victor Feyens (vfe)
odoo/odoo
13.0 #102920
14.0 #109527
15.0 #109543
16.0
17.0
18.0
saas-18.2
saas-18.3
saas-18.4
master

[FIX] product: apply pricelist formula rounding AFTER currency conversion

The setup

  • activate multicurrency and a secondary currency, for example the DKK. Make sure the exchange rate is not 1.
  • in Settings - Sales - Pricelists, activate Advanced Price Rules
  • create a new DKK pricelist with the following settings:
  • Compute Formula
  • Based on Sales Price
  • Discount 42% (or any another value)
  • Rounding Method 1.00
  • Apply on All Products
  • Min Quantity 10

Steps to reproduce

  • create a new sales order
  • set Pricelist = the DKK pricelist you created
  • add a product and set the quantity to 10

You should see that the total, after application of the pricelist, is not rounded.

Cause

The price is being rounded before conversion to the pricelist's currency.

Note

The issue is fixed as of v15.2

opw-3002376