Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2359 Представления

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
5661
2
июл. 25
1173
2
июл. 25
2904
0
янв. 25
1363
0
окт. 24
1536