Odoo Help

0

Editing sale confirmation page - Escape special char in qweb

By
Denise van der Linden-Morris
on 11/16/15, 8:42 AM 587 views

I could find and edit the sales confirmation page (website_sale.confirmation ) in the backend (SAAS V8) to add affiliate tracking code below.

<!--START Goodpartners CODE-->

<script language="JavaScript" type="text/javascript"
 src="http://www.goodpartners.eu/trackingcode_lead.php?mid=1&sec_id=M_13kW0pN3rW1uE&orderId=<?=$order.id?>">
</script>

<!-- END Goodpartners CODE -->

However upon saving the following error message is generated.

ValidateError

Field(s) `arch` failed against a constraint: Invalid display definition

Error details:
Start tag expected, '<' not found, line 1, column 3  


Is javascript allowed?



you need to escampe your char. And it's no PHP so your code will not work ! You need to specify your order_id with Qweb !

Jérémy Kersten (jke)
on 11/16/15, 9:00 AM

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.

Register

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)

Stats

Asked: 11/16/15, 8:42 AM
Seen: 587 times
Last updated: 11/16/15, 9:00 AM