Community mailing list archives

community@mail.odoo.com

Re: how to prevent odoo from sending emails when a backup is restored?

by
Holger Brunn
- 06/14/2016 14:38:32
> How can i prevent Odoo from sending out those emails whenever i
> restore a backup on my local laptop?

you might also install https://github.com/Therp/Therp-Addons/tree/8.0/override_mail_recipients, maybe with some custom logic to 
detect if you're on the live db or not, and only in the latter case redirect 
mails.

We use this a lot for test instances because you can still review the mails 
being sent, which can be crucial for some tests to do.

It's on my list to OCAize for a long time, but I didn't come around to it yet.

-- 
Therp - Maatwerk in open ontwikkeling

Holger Brunn - Ontwerp en implementatie

mail: holger@therp.nl
web: http://therp.nl