Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
10470 Lượt xem

How do i take current date in different timezone in xml in odoo?

I need to use it in xml to filter record in search view based on date?

By Default i am getting date in UTC (+0000)


Example: in hr_attendance module


There is default filter "Today" when you click on "Attendances" but it it taking time  in  UTC (+0000)

So i am getting some wrong records due to different timezone

Hers is xml code for that which is written in "hr_attendance_view.xml"

     <filter string="Today" name="today" domain="[('name','&gt;=',current_date),('name','&lt;=',current_date)]" />

So here How can i give "current_date" in different timezone 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 25
1535
1
thg 3 25
652
1
thg 9 23
2806
2
thg 8 22
7919
8
thg 6 20
22199