odoo/odoo#81302

Created by POS IoT, Robin Heinz (rhe)
label
odoo-dev:13.0-pos-cash-rounding-pay-less-rounding-rhe
head
48a8ce0a77a390287d81b31f7b3fba706ad2dacf
target
13.0
merged
2 years ago by Pierre Masereel (pim)
forward-ports

[FIX] pos_cash_rounding: Fix value under rounding

It should be allowed to pay amount that are not rounded if the value is less than the rounding value.
Ex:
Rounding value: 0.05
Amount to pay: 0.04
The amount to pay should remain 0.04 and not be rounded to 0.05.

This fix allows the user to pay for values under the rounding value without applying the rounding.

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr