Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

Time picker in field

By
Nehal
on 4/17/14, 5:58 AM 951 views

Hi,

I want to put time picker for a field. I dont want to use field with float type and widget=float_time. There is no validations at all. I want to pick timings in 12 hr format with PM and AM. Is it possible to do ?

2

Solanki Shamji

--Solanki Shamji--
1293
| 5 2 6
Baroda, India
--Solanki Shamji--

Hello!

Solanki Shamji
On 8/28/15, 7:36 AM

Hello,

May be this will helpful to you.

Take one char field in xml and give id to field.

Now add below js library in your module for time picker.

  http://amsul.ca/pickadate.js/

And give path in web extend from xml.(picker.time.js path)

and give this in your js file

$('#id given in xml').pickatime()

 This is not full code you have to little work on it.

Thanks.

Shamji


 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/17/14, 5:58 AM
Seen: 951 times
Last updated: 8/28/15, 7:36 AM