Hello,
I have a field use date time widget which will have date and time ticker , i need only to have time picker , or i dont mind to have date and time but i want the format have only the time saved in field .
Please advice
Best
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello,
I have a field use date time widget which will have date and time ticker , i need only to have time picker , or i dont mind to have date and time but i want the format have only the time saved in field .
Please advice
Best
make it fields.float
and in xml use widget float_time
for example:
in .py:
time = fields.Float(string="Time")
in xml:
<field name="time" widget="float_time" />
Thank you so much for your reply .
But in my situation im using odoo studio and automated actions like python expression .
what i need is :
once the user select the date and time the only thing i need to be saved and views is the time only .
if i go to automated actions on creation and update what would be the python expression for my field datetime ??
not in XML its on automated actions when i select the field what is the python expression will be ?
please advice
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
3
thg 8 24
|
3975 | ||
|
1
thg 4 15
|
7732 | ||
|
1
thg 7 23
|
2313 | ||
Time Widget in Odoo8
Đã xử lý
|
|
4
thg 10 17
|
8464 | |
|
0
thg 8 19
|
6551 |
Hi,
Refer the app
https://apps.odoo.com/apps/modules/16.0/field_timepicker/
The module allows the user to add time picker widget that can be used with character type fields in Odoo