コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2369 ビュー

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
5667
2
7月 25
1224
2
7月 25
2933
0
1月 25
1372
0
10月 24
1560