From 7ee59307ff6827c9bccf6cd3bedff4319d248d60 Mon Sep 17 00:00:00 2001 From: roen-odoo Date: Tue, 31 Oct 2023 14:16:59 +0000 Subject: [PATCH] [FIX] pos_restaurant: make sure tip amount is formatted correctly Current behavior: When the user language uses a different decimal separator than the "." (dot), the tip amount is not formatted correctly and the amount is incorrect. e.g. 1.5 is interpreted as 15.0 Steps to reproduce: - Change the current language decimal separator to "," (comma) and thousand separator to "." (dot) - Open restaurant (make sure tip after payment is enabled) - Add a product to the order - Pay by bank - Click on tip 20% - The tip amount is incorrect (too high) opw-3525033 closes odoo/odoo#140926 X-original-commit: f0cd80fbb55e0f234800c6be4696ff8e1533978b Signed-off-by: Vlad Stroia (vlst) Signed-off-by: Robin Engels (roen) --- addons/pos_restaurant/static/src/app/tip_screen/tip_screen.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pos_restaurant/static/src/app/tip_screen/tip_screen.xml b/addons/pos_restaurant/static/src/app/tip_screen/tip_screen.xml index 29fdcdb2ead..77b451d124a 100644 --- a/addons/pos_restaurant/static/src/app/tip_screen/tip_screen.xml +++ b/addons/pos_restaurant/static/src/app/tip_screen/tip_screen.xml @@ -29,7 +29,7 @@
-