Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4712 Представления

How to add Time field in modles database??

Аватар
Отменить
Автор Лучший ответ

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 

Аватар
Отменить
Лучший ответ

Hi  pola pola,

In Py

time = fields.Float('Time')

In XML

"time" widget="float_time"/>

Hope it helps,
Kiran K


Аватар
Отменить


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

Related Posts Ответы Просмотры Активность
3
дек. 21
4535
3
июл. 23
5850
2
мар. 24
5848
1
нояб. 22
5718
2
окт. 22
3732