Reputation: 11
I am using iframe in my view.
I am getting this message from odoo log : XMLSyntaxError: EntityRef: expecting ';', line 43, column 53 ( line 43, column 53 is pointing to "?")
but if i make the url short or remove the "?" it works fine.
<record id="view_complaints_form" model="ir.ui.view">
<field name="name">complaints.form</field>
<field name="model">complaints</field>
<field name="arch" type="xml">
<form string="Embedded Webpage" version="7.0" edit="false">
<iframe marginheight="0" marginwidth="0" frameborder = "0"
src="myurl.com/index.php?view=cycle&group=0" width="100%" height="1000"/>
</form>
</field>
</record>
Upvotes: 0
Views: 1234
Reputation: 2633
The ampersand symbol &
has a special meaning (entity reference) in this context within XML and cannot be used plainly, so it must be escaped:
<iframe marginheight="0" marginwidth="0" frameborder="0"
src="myurl.com/index.php?view=cycle&group=0" width="100%" height="1000"/>
You are getting the XMLSyntaxError: EntityRef: expecting ';'
, because the ampersand denotes the start of an entity reference, but there is no reference name and the semicolon is missing. &
is the entity reference for the ampersand itself.
Upvotes: 1