Hello Community,
I have this line inside a qweb report template:
"strong t-attf-style="#{ o.env.lang === 'en_US' ? 'margin-right: 50px;margin-left: 500px' : 'margin-left: 50px;margin-right: 500px' }">Managing Director /strong"
odoo is complaining about an invalid syntax
Error when compiling xml template SyntaxError: invalid syntax (<>, line 1) Template: 888 Path: /t/t/t[4]/t/div[4]/strong[1] Node: strong t-attf-style="#{ o.env.lang === 'en_US' ? 'margin-right: 50px;margin-left: 500px' : 'margin-left: 50px;margin-right: 500px' }">Managing Director /strong
P.S: the <> are purposely omitted, because the editor thinking it's formatting.