2.4 Time field crashes when value is "00:00:00" or empty
In a Time field when user enters value "00:00:00" or leaves the (non-required)
field empty, when saving and/or retrieving the record we get following
traceback:
File "/home/vincent/workspace/2.4/tryton/tryton/gui/window/form.py", line 349,
in sig_save
if self.screen.save_current():
File
"/home/vincent/workspace/2.4/tryton/tryton/gui/window/view_form/screen/screen.py
", line 475, in save_current
self.display()
File
"/home/vincent/workspace/2.4/tryton/tryton/gui/window/view_form/screen/screen.py
", line 665, in display
view.display()
File
"/home/vincent/workspace/2.4/tryton/tryton/gui/window/view_form/view/form.py",
line 135, in display
widget.display(record, field)
File
"/home/vincent/workspace/2.4/tryton/tryton/gui/window/view_form/view/form_gtk/ca
lendar.py", line 84, in display
value = field.get_client(record)
File
"/home/vincent/workspace/2.4/tryton/tryton/gui/window/view_form/model/field.py",
line 270, in get_client
return value.strftime(HM_FORMAT)