From 2e54052cb0d7db440fbf3494b45701941894f875 Mon Sep 17 00:00:00 2001 From: Yannick Vaucher Date: Fri, 4 Jul 2014 16:27:03 +0200 Subject: [PATCH] fix undefined variable infos use post_infos instead --- pingen/pingen_document.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pingen/pingen_document.py b/pingen/pingen_document.py index 2066d22..ac59a02 100644 --- a/pingen/pingen_document.py +++ b/pingen/pingen_document.py @@ -340,7 +340,7 @@ class pingen_document(orm.Model): country_ids = self.pool.get('res.country').search( cr, uid, [('code', '=', post_infos['country'])], context=context) - send_date = pingen_datetime_to_utc(infos['date']) + send_date = pingen_datetime_to_utc(post_infos['date']) vals = { 'post_status': POST_SENDING_STATUS[post_infos['status']], @@ -417,8 +417,8 @@ class pingen_document(orm.Model): except: _logger.exception( - 'Unexcepted Error when updating the status of pingen.document %s: ' % - document.id) + 'Unexcepted Error when updating the status of pingen.document %s: ' % + document.id) raise osv.except_osv( _('Error'), _('Unexcepted Error when updating the status of Document %s') % document.name)