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

I have a Datetime field in Sale order, when i print sale report it shows me that field in UTC time, how can i convert it to users timezone?

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

Hello Darth Vader,

You can get the date and time according to the user's timezone by using context_timestamp on report field.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

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

For Example:

<p class="m-0" t-esc="context_timestamp(doc.confirmation_date).strftime('%m/%d/%Y, %H:%M:%S')"/>

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أكتوبر 16
8914
Take Users Timezone تم الحل
3
يوليو 25
3945
3
يوليو 25
3266
1
يناير 24
1493
Time & Date Issue تم الحل
6
سبتمبر 19
11225