When the payment form is displayed, Stripe.js library isn't loaded, thus preventing the customer to pay online. When the refactor of assets was done, the link to the Stripe library was moved to __manifest__.py. As the link does not end with '.js', the file wasn't loaded anymore. See PR #60632 closes odoo/odoo#69849 X-original-commit: 8535b090a36fe6472c4b3d8211f3be39c7f1c58a Signed-off-by: Antoine Vandevenne (anv) <AntoineVDV@users.noreply.github.com> Signed-off-by: Valentin Chevalier <chevalierv@users.noreply.github.com>
21 lines
845 B
XML
21 lines
845 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="checkout" inherit_id="payment.checkout">
|
|
<xpath expr="." position="inside">
|
|
<!-- As the following link does not end with '.js', it's not loaded when
|
|
placed in __manifest__.py. The following declaration fix this problem -->
|
|
<script type="text/javascript" src="https://js.stripe.com/v3/"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="manage" inherit_id="payment.manage">
|
|
<xpath expr="." position="inside">
|
|
<!-- As the following link does not end with '.js', it's not loaded when
|
|
placed in __manifest__.py. The following declaration fix this problem -->
|
|
<script type="text/javascript" src="https://js.stripe.com/v3/"></script>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|