- fixed forgottent import of mail_thread in mass_mailing, to enable bounce and replied tracking - fixed replied computation in message_route_process, adding the original email in parameters - fixed form view of campaign, to add edit and dlete now that clicking on it redirects to the waves - added track field on mail_mail, to avoid creating too mush entries in mail.mail.statistics - fixed mass_mailign controller bzr revid: tde@openerp.com-20130916114706-b9zyhp0ha6mr9fzg
13 lines
539 B
Python
13 lines
539 B
Python
|
|
import openerp.addons.web.http as http
|
|
from openerp.addons.web.http import request
|
|
|
|
|
|
class MassMailController(http.Controller):
|
|
@http.route('/mail/track/<int:mail_id>/blank.gif', type='http', auth='admin')
|
|
def track_mail_open(self, mail_id):
|
|
""" Email tracking. """
|
|
mail_mail_stats = request.registry.get('mail.mail.statistics')
|
|
mail_mail_stats.set_opened(request.cr, request.uid, mail_mail_ids=[mail_id])
|
|
return "data:image/gif;base64,R0lGODlhAQABAIAAANvf7wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="
|