Odoo Help


Use python function in email template - openerp v7

on 3/4/16, 8:30 AM 319 views

I need to use the len() function and html_sanitize() in a template that I have created in openerp.
Can you help me please and tell me how to do that?

On 3/7/16, 5:25 AM

Please help me
I have tried
 - ${len(object.message_ids)}
 - %  len(object.message_ids)
 - len(${object.message_ids})

But no one is working.

How should I do to get it??
I need your help please :(

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

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

0 follower(s)


Asked: 3/4/16, 8:30 AM
Seen: 319 times
Last updated: 3/7/16, 5:25 AM