Public bug reported:

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

** Affects: avanzosc
     Importance: Undecided
         Status: New

-- 
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:
  New

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

-- 
Mailing list: https://launchpad.net/~avanzosc
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~avanzosc
More help   : https://help.launchpad.net/ListHelp

Reply via email to