From 256e2f480d2c6d618244e01e0d607c2d186b8dd2 Mon Sep 17 00:00:00 2001 From: miguels73 <55379877+miguels73@users.noreply.github.com> Date: Wed, 15 Feb 2023 17:16:05 +0100 Subject: [PATCH] [15.0][IMP] website_sale_checkout_skip_payment: hide payment message Alert message in the payment section of the web payment gateway so it is convenient for this module to hide this message when skip_website_checkout_payment is enabled. Detected on Odoo 14.0 OCA/e-commerce/pull/752 --- .../readme/CONTRIBUTORS.rst | 3 +++ .../views/website_sale_template.xml | 11 ++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/website_sale_checkout_skip_payment/readme/CONTRIBUTORS.rst b/website_sale_checkout_skip_payment/readme/CONTRIBUTORS.rst index 4c650f2628..e6ca403773 100644 --- a/website_sale_checkout_skip_payment/readme/CONTRIBUTORS.rst +++ b/website_sale_checkout_skip_payment/readme/CONTRIBUTORS.rst @@ -5,3 +5,6 @@ * Alexandre Díaz * Carlos Roca * Martin Wilderoth +* `Studio73 `_: + + * Miguel Gandia diff --git a/website_sale_checkout_skip_payment/views/website_sale_template.xml b/website_sale_checkout_skip_payment/views/website_sale_template.xml index ee7258284b..5a79ac7523 100644 --- a/website_sale_checkout_skip_payment/views/website_sale_template.xml +++ b/website_sale_checkout_skip_payment/views/website_sale_template.xml @@ -32,10 +32,15 @@ - - + (acquirers or tokens) and website_sale_order.amount_total and not website.checkout_skip_payment + separator=" " + add="and not website.checkout_skip_payment" + />