Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 24
1324
0
sty 24
1842
1
kwi 24
1765
1
lut 24
2827
2
sty 24
1211