From 6f8c5baffe41ee122267e75ed70dc3603dfe3f86 Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Tue, 4 Dec 2012 16:33:51 +0100 Subject: [PATCH] [IMP] use fields.datetime.now() bzr revid: abo@openerp.com-20121204153351-ckl04lewsl83a19l --- addons/crm/crm_lead.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py index 0c29c0c7f69..3de66695add 100644 --- a/addons/crm/crm_lead.py +++ b/addons/crm/crm_lead.py @@ -676,8 +676,8 @@ class crm_lead(base_stage, format_address, osv.osv): 'user_id': (lead.user_id and lead.user_id.id), 'type': 'opportunity', 'stage_id': stage_id or False, - 'date_action': time.strftime('%Y-%m-%d %H:%M:%S'), - 'date_open': time.strftime('%Y-%m-%d %H:%M:%S'), + 'date_action': fields.datetime.now(), + 'date_open': fields.datetime.now(), 'email_from': customer and customer.email or lead.email_from, 'phone': customer and customer.phone or lead.phone, }