跳至内容
菜单
此问题已终结
1 回复
2345 查看

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!

相关帖文 回复 查看 活动
8
8月 17
5657
2
7月 25
1161
2
7月 25
2866
0
1月 25
1348
0
10月 24
1529