MASS MAILING CONTACT NAME
AND OTHER DYNAMIC PLACE HOLDERS

In Odoo mass mailing module template, to render the contact name or other dynamic placeholder for fields, you need to use the mako expressions '${expr}' in the mail template. The placeholder token is different depending on the recipient object name.


When the Recipients type is Customer (fields of res.partner)

${object.name}


When the Recipients type is Applicant (fields of hr.applicant)

${object.partner_name}


When the Recipients type is Leads / Opportunities (fields of crm.lead) 

${object.partner_name} or ${object.contact_name}


When  the Recipients type is Mailing List (fields of mail.mass_mailing.contact)

${object.name}


Please Note: when you send the test email it is not rending the mako expressions.


This subject is part of our Advanced Odoo Programming Techniques Training Class. More more information on the training schedule, please check shop.vitraining.com/training.


MASS MAILING CONTACT NAME
vitraining, odoo indonesia
14 May, 2020
Share this post
Archive
Sign in to leave a comment
HOW TO ADD STATISTIC BUTTONS ON ODOO FORM?
AND DISPLAY A STATISTIC VALUE