Odoo Help

Welcome!

This community 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.

0

Editing sale confirmation page - Escape special char in qweb

By
Denise van der Linden-Morris
on 11/16/15, 8:42 AM 369 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

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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