Hello Guys,
Im running Odoo.sh on version 18.
I createt a record of a template with following entrys. It gets called from a other module an through a comand with context. Some how the mail_to field doesnt get updatet.
Can some help me wtih this?
If I use the comment field everything works.
email_adress = "test@dummy.com"
template = self.env.ref("reminder_activity_cron.email_template_remindermail_aktivity")
template = template.with_context(user=f"{email_adress}", displayname = displayname, resName = resName, link= link).send_mail(self.id, force_send=True)
<odoo>
<data noupdate="0">
<record id="email_template_remindermail_aktivity" model="mail.template">
<field name="name">Remindermail aktivity</field>
<field name="model_id" ref="mail.model_mail_activity"/>
<field name="subject">Reminder Task due Today</field>
<field name="email_from">reminder@reminder.com</field>
<field name="description">Rindermail for Task due Today</field>
<!--<field name="email_to">bot@bot.com</field>-->
<field name="email_to">{{user}}</field>
<field name="body_html" type="html">
<!-- Body is a littel bit longer but is working-->
</field>
</record>
</data>
</odoo>