Skip to Content
Menu
This question has been flagged
1 Atsakyti
2400 Rodiniai

Hi,

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

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Autorius

Thanks. It worked great!

Related Posts Replies Rodiniai Veikla
8
rugp. 17
5700
2
liep. 25
1302
2
liep. 25
3009
0
saus. 25
1402
0
spal. 24
1574