[trunk/7.0 ] Non-breaking space not possible in inherited view

Bug #1216856 reported by Wolfgang Taferner (TaPo-IT) on 2013-08-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

I was bumping into a problem concerning the use of a non-breaking space in an inherited view

Snippet (inherited view xml def):
<span class="oe_form_readonly"><![CDATA[&nbsp;]]></span>

Snippet (in DB after module update)
<span class="oe_form_readonly">&amp;nbsp;</span>

BUT, when it comes to rendering the desired FormView (recursive instance.web.json_node_to_xml), it will throw an exception (Invalid XML)

This problem is solved for attributes (replacing while json_node_to_xml), but still exists with textnodes like non-breaking spaces. I did not find any other solution without changing CORE views.js.

My solution is attached as a patch and at least solved this issue for my view and non-breaking spaces.

It would be appreciated if this bug will be fixed one way or the other in trunk/7.0 :-)

Best regards,
Wolfgang

This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers