Hi.
We are using eLearning to sell courses.
I would like to automatically send an email to a student when he finishes a course, and that email should contain a coupon.
I have created an automated action, and an email template, but the part where I am stuck is :
How can I have Odoo access the Coupon model (email template is set on Course model), select the next available coupon from the right program, and integrate it as a variable in my email.
Any ideas ?