I want to create a QR that redirects to a url with the following code:
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('QR', doc.id, 600, 50)" style="width:30px;height:30px;"/>
I want the value be like this: https://example.com/doc.id
I idea how to concat 2 strings? Thanks!!
You can just concat them right there:
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('QR', my_url + str(doc.id), 600, 50)" style="width:30px;height:30px;"/>
my_url + str(doc.id)
could also be a lot of other things, but it's python code, because t-att-src
will be evaluated later.
Biggest concerns and things i can't answer right now: