lims_interface: 'datetime' field type also needs format attribute
This commit is contained in:
parent
e727d143a3
commit
5ec9ed9672
|
@ -230,7 +230,7 @@ class Data(sequence_ordered(), ModelSQL, ModelView):
|
|||
for model in Model.search([]):
|
||||
selection.append((model.model, model.name))
|
||||
res[field.name]['selection'] = selection
|
||||
if field.type == 'timestamp':
|
||||
if field.type in ['datetime', 'timestamp']:
|
||||
res[field.name]['format'] = PYSONEncoder().encode(
|
||||
'%H:%M:%S.%f')
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue