Skip to content
Snippets Groups Projects
Commit 2b132346 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] mrp_operarations: str time comparaison

Format error when comparing str time

opw:648349
parent 78450f27
Branches
Tags
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment