[IMP] gamification: use DEFAULT_SERVER_DATE_FORMAT instead of %Y-%m-%d
bzr revid: mat@openerp.com-20131216154728-xhmazn36jmjpv6ai
This commit is contained in:
parent
ac4a89e8bf
commit
98625d20ed
|
@ -83,7 +83,7 @@ class gamification_goal_plan(osv.Model):
|
|||
:return: a string in DEFAULT_SERVER_DATE_FORMAT representing the date"""
|
||||
res = {}
|
||||
for plan in self.browse(cr, uid, ids, context):
|
||||
last = datetime.strptime(plan.last_report_date, '%Y-%m-%d').date()
|
||||
last = datetime.strptime(plan.last_report_date, DF).date()
|
||||
if plan.report_message_frequency == 'daily':
|
||||
next = last + timedelta(days=1)
|
||||
res[plan.id] = next.strftime(DF)
|
||||
|
|
Loading…
Reference in New Issue