Client crash with widget time in editable tree
/home/jan/tryton54/tryton/gui/window/view_form/screen/screen.py:644: SyntaxWarning: "is" with a literal. Did you mean "=="?
saved = all((x is 0 or x > 0 for x in self.group.save()))
/home/jan/tryton54/tryton/gui/window/view_form/screen/screen.py:649: SyntaxWarning: "is" with a literal. Did you mean "=="?
saved = record_id is 0 or record_id > 0
/home/jan/tryton54/tryton/common/domain_parser.py:501: SyntaxWarning: "is" with a literal. Did you mean "=="?
if value or value is 0 or isinstance(value, float):
/home/jan/tryton54/tryton/common/domain_parser.py:507: SyntaxWarning: "is not" with a literal. Did you mean "!="?
and value is not 0
ERROR:tryton.common.common: File "/home/jan/tryton54/tryton/gui/window/form.py", line 364, in sig_new
self.screen.new()
File "/home/jan/tryton54/tryton/gui/window/view_form/screen/screen.py", line 602, in new
group.add(record, self.new_model_position())
File "/home/jan/tryton54/tryton/gui/window/view_form/model/group.py", line 322, in add
self.insert(position, record)
File "/home/jan/tryton54/tryton/gui/window/view_form/model/group.py", line 104, in insert
self.signal('group-list-changed', ('record-added', record, pos))
File "/home/jan/tryton54/tryton/signal_event.py", line 15, in signal
fnct(self, signal_data, *data)
File "/home/jan/tryton54/tryton/gui/window/view_form/screen/screen.py", line 422, in _group_list_changed
view.group_list_changed(group, signal)
File "/home/jan/tryton54/tryton/gui/window/view_form/view/list.py", line 905, in group_list_changed
self.display()
File "/home/jan/tryton54/tryton/gui/window/view_form/view/list.py", line 1051, in display
widget.set_editable()
File "/home/jan/tryton54/tryton/gui/window/view_form/view/list_gtk/widget.py", line 302, in set_editable
self.editable.set_text(self.get_textual_value(record))
AttributeError: 'Time' object has no attribute 'set_text'
I tried to find the bug - but hard to investigate, because editable sometimes is a bool - sometime the entry
debugging shows, that self.editable in widget line 302 are different objects:
<Gtk.Entry object at 0x7f62747b8fc0 (GtkEntry at 0x562a5d108f40)>
<datetime_.Time object at 0x7f6274cbedc0 (Time at 0x562a5d0d6b50)>