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

For Quotation Date in a Sales Order, we don't need the time portion.

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

Odoo leverages the Bootstrap Tempus Dominus datepicker.


The best option is to use field options to change the format used:

options="{'datepicker': {'format': 'L'}}"


Although you can change the widget used to DATE instead of DATETIME you will encounter issues if you are not in the UTC timezone, see https://github.com/odoo/odoo/issues/55827


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

Hi,

Add widget="date" along with the field by inheriting the view.

Thanks

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

If you are in a timezone which has a negative UTC offset, you will encounter the problem I reference.

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
يناير 24
2537
2
يونيو 22
4469
2
يونيو 18
6036
2
نوفمبر 16
13626
2
فبراير 24
12521