コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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
1846
0
1月 24
2312
1
4月 24
2375
1
2月 24
3576
2
1月 24
1598