From 8be706e000a978817b8eb880a7e5033597f631a5 Mon Sep 17 00:00:00 2001 From: Florent de Labarre <florent.mirieu@gmail.com> Date: Fri, 21 Apr 2023 06:52:52 +0000 Subject: [PATCH] [FIX] website_sale: show correctly the acquirer name Like here https://github.com/odoo/odoo/blob/14.0/addons/payment/views/payment_templates.xml#L69, if the acquirer have display_as, it is more logical to shpw everywhere this field. closes odoo/odoo#119432 X-original-commit: 280454b068467c1844ed9ce7b7547f09e715818e Signed-off-by: Valentin Chevalier <vcr@odoo.com> --- addons/website_sale/views/templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 7af0592f9a04..54cb69caabaa 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -1735,7 +1735,7 @@ <tbody> <tr> <td colspan="2"> - <t t-esc="payment_tx_id.acquirer_id.sudo().name" /> + <t t-esc="payment_tx_id.acquirer_id.display_as or payment_tx_id.acquirer_id.name" /> </td> <td class="text-right" width="100"> <strong>Total:</strong> -- GitLab