From 9f121848f2bfc98ca814079109441e5bbb579d6a Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Sat, 5 Nov 2011 15:00:59 +0100 Subject: [PATCH] [FIX] edi: do not force send EDI notification, wait for mail scheduler bzr revid: odo@openerp.com-20111105140059-1g2d6rfzf1um6m66 --- addons/edi/models/edi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/edi/models/edi.py b/addons/edi/models/edi.py index e222a4688d4..b8fc8699ca2 100644 --- a/addons/edi/models/edi.py +++ b/addons/edi/models/edi.py @@ -475,7 +475,7 @@ class EDIMixin(object): edi_token = self.pool.get('edi.document').export_edi(local_cr, uid, [edi_record], context = context)[0] edi_context = dict(context, edi_web_url_view=EDI_VIEW_WEB_URL % (web_root_url, local_cr.dbname, edi_token)) self.pool.get('email.template').send_mail(local_cr, uid, mail_tmpl.id, edi_record.id, - force_send=True, context=edi_context) + force_send=False, context=edi_context) _logger.info('EDI export successful for %s #%s, email notification sent.', self._name, edi_record.id) except Exception: _logger.warning('Ignoring EDI mail notification, failed to generate it.', exc_info=True)