[FIX] mrp_operarations: str time comparaison

Format error when comparing str time

opw:648349
This commit is contained in:
Goffin Simon 2015-10-01 15:05:47 +02:00
parent 78450f2769
commit 2b13234661
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ class mrp_production(osv.osv):
if l.state in ('done','cancel','draft'):
continue
todo += l.move_dest_id_lines
if l.production_id and (l.production_id.date_finished > dt):
if l.production_id and (l.production_id.date_finished > dt.strftime('%Y-%m-%d %H:%M:%S')):
if l.production_id.state not in ('done','cancel'):
for wc in l.production_id.workcenter_lines:
i = self.pool.get('resource.calendar').interval_min_get(