Problem using svg content in QWeb Template
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm creating a new OpenERP web module that displays various svg on it. I really don't no if this is a precise problem from the QWeb engine or from the OpenERP web framework itself.
The problem is that the svg content in a QWeb template isn't deplayed. This is the xml code that I'm using in the template :
<templates>
<t t-name=
<svg xmlns="http://
<circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red" />
</svg>
</t>
</templates>
This simple doesn't work. The svg is not deplayed when i call the template from widget. This is kind of weird because if we see the source code of the web framework, the svg is correctly in the code.
The only way that works with QWeb is If I call the svg in a object, embed or image tag, like this:
<templates>
<t t-name=
<object id="circle" data="/
</t>
</templates>
At the end, I was able to display the svg but without using the QWeb, this was made by appending the raw code of svg in the "this.$el" variable of the wiget instance but it could be much better to make this with QWeb.
This problem affects version 7.0