Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2500 Vistas

Hi,

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

Avatar
Descartar
Mejor respuesta

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
Descartar
Autor

Thanks. It worked great!

Publicaciones relacionadas Respuestas Vistas Actividad
8
ago 17
5787
2
ago 25
1548
2
jul 25
3240
0
ene 25
1530
0
oct 24
1663