When you have portal activated you'll get an automatic e-mail saying something along these lines:
Quotation confirmed • Customer: Yenthe • Untaxed Amount: 1.
The problem is that I do not want this message to be e-mailed. Any message should be e-mailed to the customer when the portal is active, except this one.
The message is made by the function format_message in mail/mail_thread.py:
def format_message(message_description, tracked_values): message = '' if message_description: message = '<span>%s</span>' % message_description for name, change in tracked_values.items(): message += '<div> • <b>%s</b>: ' % change.get('col_info') if change.get('old_value'): message += '%s → ' % change.get('old_value') message += '%s</div>' % change.get('new_value') return message if not tracked_fields: return True
This function posts the message to the view (in the chatter) but the problem is that somewhere else an action is triggered to send this message as an e-mail to the user.
So, my question, how can I / what is the best way to prevent this message to be send by email but allow anything else to be e-mailed to the customers?