Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 24
2037
0
thg 1 24
2551
1
thg 4 24
2615
1
thg 2 24
3858
2
thg 1 24
1768