Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2396 Näkymät

Hi,

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

Avatar
Hylkää
Paras vastaus

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

Avatar
Hylkää
Tekijä

Thanks. It worked great!

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
8
elok. 17
5698
2
heinäk. 25
1300
2
heinäk. 25
3002
0
tammik. 25
1401
0
lokak. 24
1572