Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
4781 Visualizações

How to add Time field in modles database??

Avatar
Cancelar
Autor Melhor resposta

hi kiran k 

thank u for your help 

it is not working as when you try to record time format such 10:50, invalid error message shows. in order to save the window after editing i have to record time format in float like 10.50 but when saving, it appears in the report 10:39 in time format.

another problem when i import excel sheet consisting of times, it show me an error that i can not import 

Avatar
Cancelar
Melhor resposta

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


Avatar
Cancelar


<field name="time" widget="float_time"/>

Publicações relacionadas Respostas Visualizações Atividade
3
dez. 21
4604
3
jul. 23
5901
2
mar. 24
5903
1
nov. 22
5802
2
out. 22
3807