Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2379 Переглядів

Hi,

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Автор

Thanks. It worked great!

Related Posts Відповіді Переглядів Дія
8
серп. 17
5681
2
лип. 25
1284
2
лип. 25
2979
0
січ. 25
1381
0
жовт. 24
1568