تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
6026 أدوات العرض

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 ?

الصورة الرمزية
إهمال
أفضل إجابة

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


 

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

Hi Cybrosus Techno Solutions, I try download this module but Odoo App not response to download 

الصورة الرمزية
إهمال