Odoo Help


Implementing Stripe Checkout -- Issues qweb for acquirer button

Ralph LAvaud
on 4/24/15, 9:58 AM 1,231 views

Trying to get this aquirer button to work and I am not sure how to pass the values to the form using qweb. The values are not input type hidden, but they are in the form tag.

Here is my code 

<?xml version="1.0" encoding="utf-8"?>


<data noupdate="1">

<template id="stripe_acquirer_button">

<form t-if="acquirer" t-att-action="tx_url" method="post">


src="https://checkout.stripe.com/checkout.js" class="stripe-button"

data-key=<t t-raw="tx_values['data-desciption'].raw_val" />















My Issue is the the field like data-key and data-email etc, the rendered HTML does not show the value but instead show whatever is in double quotes.


Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
Jérémy Kersten (jke)
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 4/25/15, 5:51 PM


You need to replace data-amount by t-att-data-amount (idem for all other fields)

T-att- will make an eval from what you specify in double quotes...


<input type='text' t-att-data-xxx="1+1" data-yyy="1+1"/>


<input type="text" data-xxx="2" data-yyy="1+1" />


More details here : https://www.odoo.com/documentation/8.0/reference/qweb.html#reference-qweb-attributes

Thanks you very much worked like a charm

Ralph LAvaud
on 4/30/15, 2:10 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/24/15, 9:58 AM
Seen: 1231 times
Last updated: 5/13/15, 12:38 PM