[FIX] website_sale: handle missing express checkout providers

The express checkout form template could not be rendered when no payment
provider supporting express checkout was passed.

closes odoo/odoo#140415

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Antoine Vandevenne (anv)
2023-10-31 10:33:56 +00:00
parent a1981c0279
commit f294bc10f8
@@ -43,7 +43,7 @@
t-att-data-express-checkout-route="express_checkout_route"
t-att-data-landing-route="landing_route"
>
<t t-set="provider_sudo" t-value="providers_sudo[0]"/>
<t t-set="provider_sudo" t-value="providers_sudo[:1]"/>
<t t-set="express_checkout_form_xml_id"
t-value="provider_sudo.express_checkout_form_view_id.xml_id"
/>