You are here: Home / Change test email address for Odoo 12

Change test email address for Odoo 12

by Hawke Robinson last modified Jan 18, 2021 04:04 PM
Odoo 12's default test outbound email template attempts to send email to noreply@odoo.com. This needs to be changed to something useful in a production setup.

To change this:

/usr/lib/python3/dist-packages# grep -r noreply@odoo.com *
Binary file odoo/addons/base/models/__pycache__/ir_mail_server.cpython-36.pyc matches
odoo/addons/base/models/ir_mail_server.py: email_from, email_to = self.env.user.email, 'noreply@odoo.com'

Edit ir_mail_server.py and replace with desired email replacing noreply@odoo.com.

 

To see configuration of this via GUI (though I don't know yet if you can edit it there (don't see how currently):

Go to Development mode

Go to Settings

Then Technical > Database Structure > Models

 

 

Navigation