From 4abdb42b11065cadb6c5547c4a67d4b975b67ba6 Mon Sep 17 00:00:00 2001 From: Serpent Consulting Services Date: Wed, 22 Aug 2012 03:17:08 +0530 Subject: [PATCH] [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 --- 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 2a036acb2b4..45fbbbc6cd2 100644 --- a/addons/edi/models/edi.py +++ b/addons/edi/models/edi.py @@ -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)