تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2354 أدوات العرض

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
أغسطس 17
5660
2
يوليو 25
1169
2
يوليو 25
2892
0
يناير 25
1362
0
أكتوبر 24
1533