[FIX] lunch: fixed bug introduced during code review, in previous revision

bzr revid: qdp-launchpad@openerp.com-20121106082047-ob2e8k26dp0xthdi
This commit is contained in:
Quentin (OpenERP) 2012-11-06 09:20:47 +01:00
parent 27462480b2
commit ee11122aeb
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class lunch_order(osv.Model):
#check if the address must be displayed today
if self.can_display_alert(alert):
#display the address only during its active time
mynow = fields.datetime.context_timestamp(cr, uid, datetime.datetime.now(), context=context)
mynow = fields.datetime.context_timestamp(cr, uid, datetime.now(), context=context)
hour_to = int(alert.active_to)
min_to = int((alert.active_to - hour_to) * 60)
to_alert = datetime.strptime(str(hour_to) + ":" + str(min_to), "%H:%M")