Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2377 Lượt xem

Hi,

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks. It worked great!

Bài viết liên quan Trả lời Lượt xem Hoạt động
8
thg 8 17
5681
2
thg 7 25
1281
2
thg 7 25
2978
0
thg 1 25
1377
0
thg 10 24
1567