[FIX] lunch: fixed bug introduced during code review, in previous revision
bzr revid: qdp-launchpad@openerp.com-20121106082047-ob2e8k26dp0xthdi
This commit is contained in:
parent
27462480b2
commit
ee11122aeb
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue