From 4b9dfed78670d3630f09b238c2ef5548a405476e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 19 Apr 2012 09:53:54 +0200 Subject: [PATCH] [FIX] Wrong var name due to copy and paste. bzr revid: tde@openerp.com-20120419075354-ympww3kc0xw35vpb --- addons/purchase/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 4ca0521177c..687221f371b 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -675,7 +675,7 @@ class purchase_order(osv.osv): # convert datetime field to a datetime, using server format, then # convert it to the user TZ and re-render it with %Z to add the timezone picking_datetime = fields.DT.datetime.strptime(picking.min_date, DEFAULT_SERVER_DATETIME_FORMAT) - picking_date_str = fields.datetime.context_timestamp(cr, uid, meeting_datetime, context=context).strftime(DATETIME_FORMATS_MAP['%+'] + " (%Z)") + picking_date_str = fields.datetime.context_timestamp(cr, uid, picking_datetime, context=context).strftime(DATETIME_FORMATS_MAP['%+'] + " (%Z)") self.message_append_note(cr, uid, [order.id], body=_("Shipment %s scheduled for %s.") % (picking.name, picking_date_str), context=context) def invoice_send_note(self, cr, uid, ids, invoice_id, context=None):