fix undefined variable infos use post_infos instead

This commit is contained in:
Yannick Vaucher
2014-07-04 16:27:03 +02:00
parent 95cce84d0c
commit 2e54052cb0

View File

@@ -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)