Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2352 Weergaven

Hi,

How to inherit the ecommerce "Pay Now" button in odoo 12 custom  module ? 

Avatar
Annuleer
Beste antwoord

Hi,

Try like below

<template inherit_id="payment.payment_tokens_list" id="payment_tokens_list" name="Payment Tokens list">


    <xpath expr="//button[@id='o_payment_form_pay']" position="inside">


        <!--        Your Code-->


    </xpath>


</template>

The "Pay Now" button is called from a template "payment_tokens_list" in the "payment" module. the button name is dynamic and it is used in many other areas too. so the changes will be affected there too. you can also check the template with id "payment" in the "website_sale" module from where it is called.

Regards

Avatar
Annuleer
Auteur

Thanks. It worked great!

Gerelateerde posts Antwoorden Weergaven Activiteit
8
aug. 17
5658
2
jul. 25
1166
2
jul. 25
2886
0
jan. 25
1362
0
okt. 24
1533