[FIX] mrp_operarations: str time comparaison
Format error when comparing str time opw:648349
This commit is contained in:
parent
78450f2769
commit
2b13234661
|
@ -313,7 +313,7 @@ class mrp_production(osv.osv):
|
||||||
if l.state in ('done','cancel','draft'):
|
if l.state in ('done','cancel','draft'):
|
||||||
continue
|
continue
|
||||||
todo += l.move_dest_id_lines
|
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'):
|
if l.production_id.state not in ('done','cancel'):
|
||||||
for wc in l.production_id.workcenter_lines:
|
for wc in l.production_id.workcenter_lines:
|
||||||
i = self.pool.get('resource.calendar').interval_min_get(
|
i = self.pool.get('resource.calendar').interval_min_get(
|
||||||
|
|
Loading…
Reference in New Issue