[FIX] EDI : Correct cursor passed to call,regression fixed caused by http://bazaar.launchpad.net/~openerp/openobject-addons/6.1/revision/6956
lp bug: https://launchpad.net/bugs/1039664 fixed bzr revid: support@serpentcs.com-20120821214708-z08v9l8ind6usgvh
This commit is contained in:
@@ -472,7 +472,7 @@ class EDIMixin(object):
|
||||
_logger.warning('Ignoring EDI mail notification, template %s cannot be located', template_ext_id)
|
||||
return
|
||||
for edi_record in self.browse(local_cr, uid, ids, context=context):
|
||||
edi_context = dict(context, edi_web_url_view=self._edi_get_object_web_url_view(cr, uid, edi_record, context=context))
|
||||
edi_context = dict(context, edi_web_url_view=self._edi_get_object_web_url_view(local_cr, uid, edi_record, context=context))
|
||||
self.pool.get('email.template').send_mail(local_cr, uid, mail_tmpl.id, edi_record.id,
|
||||
force_send=False, context=edi_context)
|
||||
_logger.info('EDI export successful for %s #%s, email notification sent.', self._name, edi_record.id)
|
||||
|
||||
Reference in New Issue
Block a user