Test time is None to display empty value in tree

issue5230
review15901002
This commit is contained in:
Cédric Krier committed 2016-01-13 21:13:27 +01:00
1 parent d2ab349bb5
commit 6ef13d27c0
1 file changed
+1 -1
@@ -377,7 +377,7 @@ class Time(Date):
if not record:
return ''
value = record[self.attrs['name']].get_client(record)
if value:
if value is not None:
return value.strftime(self.renderer.props.format)
else:
return ''