Closed GoogleCodeExporter closed 9 years ago
Les, the bug is in your code. You attempt to extend the tuple
'requiredWorkOrdAll',
since tuples are not mutable, they can't be extended:
requiredWorkOrd = MaintAppModel.requiredWorkOrdAll
if workOrder.status != Workorder.OPEN:
requiredWorkOrd.extend(MaintAppModel.requiredWorkOrdDone)
Original comment by bd.gai...@gmail.com
on 12 Jun 2009 at 3:42
Original comment by bd.gai...@gmail.com
on 12 Jun 2009 at 9:08
Thanks for the thorough bug report.
MaintAppModel.requiredWorkOrdDone was mispelled as reqd......
Made requiredWorkOrd a list()
Before:
requiredWorkOrd = MaintAppModel.requiredWorkOrdAll
After:
requiredWorkOrd = list(MaintAppModel.requiredWorkOrdAll)
Original comment by Les.Faby.78@gmail.com
on 13 Jun 2009 at 1:53
Now works on my machine
Original comment by Les.Faby.78@gmail.com
on 13 Jun 2009 at 2:04
Original issue reported on code.google.com by
Les.Faby.78@gmail.com
on 12 Jun 2009 at 2:50Attachments: