Odoo Help

4

1
3 Answers
1
Avatar

Ravi Gadhia India

--Ravi Gadhia--

7769
| 2 2 5
Gandhinagar, India
--Ravi Gadhia--


Ravi Gadhia India
10/30/19, 5:38 AM

Hi, mail template use jinja2 template for compile the expression 

>>> MailTemplate = self.env['mail.template']
>>> subject = "Hi ${object.name} Welcome"
>>> MailTemplate.render_template(subject, 'res.partner', [3])
{3: 'Hi Administrator Welcome'}

You can use mail.template `render_template` method to get similar result


Ask a Question
Writer
Keep Informed
1 follower(s)
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