← Back to team overview

avanzosc team mailing list archive

[Bug 829523] Re: can't compare datetime.datetime to str

 

Thanks for your proposal!! Fixed in revision 118

** Changed in: avanzosc
       Status: New => Fix Committed

** Changed in: avanzosc
     Assignee: (unassigned) => Urtzi Odriozola (urtzi-odriozola)

-- 
You received this bug notification because you are a member of Avanzosc
Developers, which is subscribed to Avanzosc developments.
https://bugs.launchpad.net/bugs/829523

Title:
  can't compare datetime.datetime to str

Status in Avanzosc OpenERP modules:
  Fix Committed

Bug description:
  When you create a MO with a date who is not the current date, when you
  start the work order, you have this message

  File "/home/objectif-pi/6.0/bin/addons/mrp_operations_ext/mrp_operations.py", line 488, in _move_pass
      if l.production_id and (l.production_id.date_finished > dt):
  TypeError: can't compare datetime.datetime to str

  Solution Proposal: replace ligne if l.production_id and (l.production_id.date_finished > dt):
  by if l.production_id and (l.production_id.date_finished > dt.strftime('%Y-%m-%d %H:%M:%S')):

  raphael

To manage notifications about this bug go to:
https://bugs.launchpad.net/avanzosc/+bug/829523/+subscriptions


References