콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2495 화면

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
5787
2
8월 25
1548
2
7월 25
3239
0
1월 25
1530
0
10월 24
1663