29 lines
1.1 KiB
XML
29 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="payment_form" inherit_id="payment.form">
|
|
<xpath expr="." position="inside">
|
|
<t t-call="payment_stripe.sdk_assets"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="no_pms_available_warning" inherit_id="payment.no_pms_available_warning">
|
|
<a name="activate_stripe" position="attributes">
|
|
<!-- Hide 'Activate Stripe' button when the `payment_stripe` module is installed. -->
|
|
<attribute name="class" separator=" " add="d-none"/>
|
|
</a>
|
|
</template>
|
|
|
|
<template id="express_checkout" inherit_id="payment.express_checkout">
|
|
<xpath expr="." position="inside">
|
|
<t t-call="payment_stripe.sdk_assets"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="sdk_assets">
|
|
<!-- 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>
|
|
</template>
|
|
</odoo>
|