I’m trying to upload an SVG to Odoo, but Odoo is modifying the file. Specifically, it looks like its stripping out the JavaScript section of the file. The image should behave like this:
https://shane.coffeecup.com/test.svg
When you hover over the image, certain parts are highlighted in green. However, when I upload the SVG to Odoo, this no longer works. You can this it here:
https://goodman-ent.odoo.com
The image is no longer interactive. I’ve tried both local SVGs and externally linked files. How can I upload an image without the image being changed?
1
The javascript is still there but it doesn’t get called in an <img>
tag – if you can change it to an <object>
instead it should work e.g.:
<object type="image/svg+xml" data="test.svg"></object>