From bb12565cf8393f40ea206c856afff7be14cf5c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 3 Oct 2015 11:57:11 +0200 Subject: [PATCH] Fix time widget to display 00:00 time(0, 0) is evaluated to False so the test for None must be explicit to set correctly 00:00. issue4969 review22501002 --- tryton/common/datetime_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/common/datetime_.py b/tryton/common/datetime_.py index 1b8de7a31a..7dc25d019f 100644 --- a/tryton/common/datetime_.py +++ b/tryton/common/datetime_.py @@ -275,7 +275,7 @@ class Time(gtk.ComboBoxEntry): self.__time = time def update_label(self): - if not self.__time: + if self.__time is None: self.__entry.set_text('') return