Hello all,
i have in my model:
start_hour = fields.Float(string="start hour", required=True)
how can i display this field in time format hh:mm in the odoo website form
thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello all,
i have in my model:
start_hour = fields.Float(string="start hour", required=True)
how can i display this field in time format hh:mm in the odoo website form
thanks
Hi,
In the form view, add `widget="float_time"
eg:<field name="start_hour" widget="float_time"/>
Note for the template view, we can use this:
t-options="{'widget': 'float_time'}"
Hope it helps
thanks for your help but:
it's ok for the form view , the problem is in the template view , i tried input type='text' and input type ='number' with t-options="{'widget': 'float_time'}" but i can't have the hh:mm format
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
2
5월 25
|
10645 | |||
|
3
3월 24
|
6334 | |||
|
1
1월 21
|
4194 | |||
|
2
11월 25
|
310 | |||
|
0
1월 25
|
2047 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.