This question has been flagged

Hi, 

I have a mail template and I can successfully send the email to the customer, but I need to set the sender email address for each customer language. Basically, if the customer language is German, I need to set a different email address. (I use amazon SES and have multiple sender addresses, only on Odoo I dont know how to configure this part)

Below is my mail template just so you have an idea.

Thanks, 

<odoo>

<data noupdate="1">
<record id="tracking_number" model="mail.template">
<field name="name">Send Tracking Number to Customer</field>
<field name="email_from">${object.company_id and object.company_id.email or ''}</field>
<field name="subject">Package Sent</field>
<field name="email_to">${object.email|safe}</field>
<field name="lang">${object.lang}</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="auto_delete" eval="True"/>
<field name="body_html">
<![CDATA[
<p>Dear ${(object.name)},<br/><br/>
Your tracking number is ${(object.reference)}<br/><br/>
${(object.company_id.name)}
]]>
</field>
</record>
</data>
</odoo> 
Avatar
Discard