From 2df9ff0770e82dcc1e6ede1d5706679854f7c2ea Mon Sep 17 00:00:00 2001 From: mafo-odoo Date: Tue, 20 Sep 2022 11:41:50 +0000 Subject: [PATCH] [FIX] website_sale: new portal display for amount mismatch Steps to reproduce: - Use ecommerce and the mollie payment - Open two tabs, on one pay via mollie, on the other while the mollie payment is in progress add or remove items to the cart Current behavior: Once the payment is validated the customer is redirected to a page that show a wrong value for the transaction, and there is nothing about the amount mismatch Expected behavior: The transaction has the right value and the text in warning explains the situation. opw-2983494 closes odoo/odoo#101187 X-original-commit: 0688b1e609512db7e4d66020171df8c1b9969c20 Signed-off-by: William Braeckman (wbr) Signed-off-by: Fockedey Martin (mafo) --- addons/website_sale/i18n/website_sale.pot | 7 +++++++ addons/website_sale/views/templates.xml | 12 +++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/addons/website_sale/i18n/website_sale.pot b/addons/website_sale/i18n/website_sale.pot index 877242529b0..b2e171b3015 100644 --- a/addons/website_sale/i18n/website_sale.pot +++ b/addons/website_sale/i18n/website_sale.pot @@ -361,6 +361,13 @@ msgid "" " " msgstr "" +#. module: website_sale +#: model_terms:ir.ui.view,arch_db:website_sale.payment_confirmation_status +msgid "" +"Unfortunately your order can not be confirmed as the amount of your payment does not match the amount of your cart.\n" +" Please contact the responsible of the shop for more information." +msgstr "" + #. module: website_sale #: model_terms:ir.ui.view,arch_db:website_sale.view_product_image_form msgid "Video Preview" diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 01852fdeb6d..7c44e641486 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -2106,17 +2106,18 @@

Payment Information:

+ @@ -2200,7 +2201,8 @@
@@ -2214,6 +2216,10 @@ + + Unfortunately your order can not be confirmed as the amount of your payment does not match the amount of your cart. + Please contact the responsible of the shop for more information. +
- + Total: - +