[IMP] use fields.datetime.now()

bzr revid: abo@openerp.com-20121204153351-ckl04lewsl83a19l
This commit is contained in:
Antonin Bourguignon 2012-12-04 16:33:51 +01:00
parent 8142082057
commit 6f8c5baffe
1 changed files with 2 additions and 2 deletions

View File

@ -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,
}