Files
odoo_source/addons
Merel Geens (mege) b2e421bff2 [FIX] sale_loyalty: round real points for coupon
`_get_real_points_for_coupon` subtracts several floats which can result
in rounding errors when a comparison is made in `action_confirm` that
checks if the result is smaller than 0. If the result is something like
-1 * 10^-14, Odoo will tell the user the coupon is invalid, which is
false. To prevent this from happening, we round according to the
associated currency of the points.

opw-3120442

closes odoo/odoo#112995

X-original-commit: 59c43f5cc460f311388540558e0fb0731b02cbc2
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2023-02-17 16:45:15 +01:00
..
2023-02-03 06:06:23 +01:00
2023-02-13 16:20:52 +01:00
2023-01-30 19:45:56 +01:00
2023-01-30 15:35:25 +01:00
2023-02-07 16:38:26 +01:00
2023-02-10 12:32:26 +01:00
…