İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4533 Görünümler

How to add Time field in modles database??

Avatar
Vazgeç
Üretici En İyi Yanıt

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
Vazgeç
En İyi Yanıt

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


Avatar
Vazgeç


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

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Ara 21
4287
3
Tem 23
5663
2
Mar 24
5675
1
Kas 22
5474
2
Eki 22
3564