[FIX] payment_stripe: provider_sudo has been changed to provider

After this commit https://github.com/odoo/odoo/commit/e534ab41e7b3b71a8286eba849fd4d70f4b27334 the `provider_sudo` has been refactored to
`provider`. But in the `saas_payment_stripe`, it still uses
`provider_sudo`. So it will cause an error in the saas databases.

opw-3271034

closes odoo/odoo#118748

X-original-commit: 3dde24f28ff338a98e6f88641ab592f0b4e6eba6
Signed-off-by: Valentin Chevalier <vcr@odoo.com>
This commit is contained in:
pedrambiria
2023-04-17 14:14:24 +02:00
parent 4d5516774d
commit 30ee75cbff
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -377,12 +377,12 @@
t-att-data-shipping-address-update-route="shipping_address_update_route"
t-att-data-express-checkout-route="express_checkout_route"
t-att-data-landing-route="landing_route">
<t t-foreach="providers" t-as="provider">
<t t-foreach="providers" t-as="provider_sudo">
<t t-set="express_checkout_form_xml_id"
t-value="provider.express_checkout_form_view_id.xml_id"/>
t-value="provider_sudo.express_checkout_form_view_id.xml_id"/>
<t t-if="express_checkout_form_xml_id">
<t t-call="{{express_checkout_form_xml_id}}">
<t t-set="provider" t-value="provider"/>
<t t-set="provider_sudo" t-value="provider_sudo"/>
</t>
</t>
</t>
@@ -3,11 +3,11 @@
<template id="express_checkout_form">
<div name="o_express_checkout_container"
t-attf-id="o_stripe_express_checkout_container_{{provider.id}}"
t-att-data-provider-id="provider.id"
t-att-data-provider-code="provider.code"
t-att-data-stripe-publishable-key="provider._stripe_get_publishable_key()"
t-att-data-country-code="provider.company_id.country_id.code"
t-attf-id="o_stripe_express_checkout_container_{{provider_sudo.id}}"
t-att-data-provider-id="provider_sudo.id"
t-att-data-provider-code="provider_sudo.code"
t-att-data-stripe-publishable-key="provider_sudo._stripe_get_publishable_key()"
t-att-data-country-code="provider_sudo.company_id.country_id.code"
class="w-100 mt-2"/>
</template>