I am creating a report to print as a pdf. In this report I am generating some QR codes from strings of product data that most generate working QR codes as intended, but some of the strings with special characters, specifically commas "," will make the QR code not generate at all. Taking the commas out makes the code generate but we need the commas in the QR codes. Here is the code I'm using to generate the QR codes. This is the string that sometimes has commas in it: o.product_id.name.
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('QR', o.name, 100, 100)" style="display:inline;width:50px;height:50px;"/>
Display QR Code: https://learnopenerp.blogspot.com/2022/06/generate-qr-code-for-qweb-report-redirect-to-url-odoo.html