Odoo Help


Mako Templates and CKEditor problem

on 12/4/14, 5:07 AM 655 views

Hello everybody,

I'm working on mails and mail templates (mako) inside OpenERP. I have a problem when I choose the template and the ckeditor (version 4.3.1) is filled.

If I press the source button first and then I choose the template, the code is loaded fine and everything is working. But when I switch to WYSIWYG view is not working anymore.

When I switch back to the source view something like this happens

I tried protecting the source like below, but anyway I get an empty mail:
config.protectedSource.push( /<%[\s\S]*?%>/g );

In my case the code between <% %> is protected but if I write in source view

set suma = 3+4 
string = "some string"

Login de res.partner: ${object.name}<br />

When I switch back to WYSIWYG this happens

set suma = 3+4 
string = "some string"
%>Login de res.partner: ${object.name}<br />

And I get an empty mail

Any idea how to solve this?

OpenERP v7.

Thanks in advance.

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.


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)


Asked: 12/4/14, 5:07 AM
Seen: 655 times
Last updated: 3/16/15, 8:10 AM