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

I created a view for an inline form inside the view of payment plugin, and on the checkout page i get this error : 

Error while render the template
KeyError: 'provider_sudo'


Here is the code (redacted for copyright reason) 


   

   

   

   

   


   

``<template id="inline_form_test">

   

        <head>

   

            <script src="provider_sudo._function1()"

   

                t-att-data-2="provider_sudo._function2()"

   

                t-att-data-3="provider_sudo._function3()"

   

                t-att-data-3-bis="provider_sudo._function3()"

   

                t-attf-data-language="">

   

            </script>

   

            <link rel="stylesheet" t-att-data-href="provider_sudo._function4()" />

   

            <script t-att-data-src="provider_sudo._function5()">

   

            </script>

   

        </head>

   

        <body>

   

            <div class="my_class" t-att-data-6="provider_sudo._function6()"></div>

   

        </body>

   

    </template>``



In my payment_provider.py file i have all the function referenced and they all give a string as an output

Is there a documentation for the usage of custom made t-att attributs. I tried to do it the same way as the one inside the view of the stripe plugin but couldn't make it work.

If you need any information to help me i will answer asap to your comment.

아바타
취소
관련 게시물 답글 화면 활동
1
4월 24
1984
0
1월 24
2481
1
4월 24
2539
1
2월 24
3771
2
1월 24
1711