Feb 24th, 2021, 2:45 PM
no need to enter a value in field FROM, see the code :
'email_from': fields.char('From',
help="Sender address (placeholders may be used here). If not set, the default "
"value will be the author's email alias if configured, or email address."),
Here is how you do it in XML:
<record id="yourdirectory.yourprefered_id" model="mail.template">
<field name="email_from">info@yourcompany.com</field>
<field name="reply_to">info@yourcompany.com</field>
<field name="email_to">${object.model_field_representing_email}</field>
<field name="subject">bla bla bla</field>
...
</record>
I made many websites as a coder and I was also a part of a well-named agency that makes websites worldwide. For more queries please leave a message for me here or just hit the key fob website and I'll answer you within 24 hours. I hope that this answer is enough to make the changes.
'email_from': fields.char('From',
help="Sender address (placeholders may be used here). If not set, the default "
"value will be the author's email alias if configured, or email address."),
Here is how you do it in XML:
<record id="yourdirectory.yourprefered_id" model="mail.template">
<field name="email_from">info@yourcompany.com</field>
<field name="reply_to">info@yourcompany.com</field>
<field name="email_to">${object.model_field_representing_email}</field>
<field name="subject">bla bla bla</field>
...
</record>
I made many websites as a coder and I was also a part of a well-named agency that makes websites worldwide. For more queries please leave a message for me here or just hit the key fob website and I'll answer you within 24 hours. I hope that this answer is enough to make the changes.