Odoo Help

0

DMS image encoded in base64 problem !

By
mareban
on 3/12/18, 9:04 AM 192 views

Hello,

I've integrated a full ckeditor with the DMS module ! It works fine, except that image (from copy/paste)  are never stored in the DB when i save the document (<img src="" />), image is empty !

If i update the content field in the database manually in the document_document table  with the base64 encoded image, everything is ok (<img src="data:image/png;base64,iVBORw....) !

In the document view, i use the widget="ckeditor" for the content field !


Is it a field type problem, an input filtered problem, ... ???


Thanks for your help.






0
mareban
On 3/13/18, 10:47 AM

add sanitize=False, and now it's OK  :-)

About This Community

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

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/12/18, 9:04 AM
Seen: 192 times
Last updated: 3/13/18, 10:47 AM