Odoo supports creating dynamic emails through Jinja templates. In this recipe, we will create a Jinja mail template and then send mail with its help.
For this recipe, we will be using the my_library module from the previous recipe Managing activities on documents. We will add the Jinja template to send an email to the borrower to tell him/her the book is overdue.
Follow these steps to send a reminder email to the borrower:
- Create a new file called my_library/data/mail_template.xml and add the mail template...