[IMP] improve code

bzr revid: fka@tinyerp.com-20121003092043-e3id1isgm65itoef
This commit is contained in:
Foram Katharotiya (OpenERP) 2012-10-03 14:50:43 +05:30
parent 9f79e73ac8
commit 6ff616dd04
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ class survey_history(osv.osv):
'date': fields.datetime('Date started', readonly=1),
}
_defaults = {
'date': lambda * a: strftime("%Y-%m-%d %H:%M:%S")
'date': lambda * a: datetime.datetime.now()
}
survey_history()