Odoo Help


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.


Take current date in different timezone in xml in odoo

on 12/11/15, 12:28 AM 4,108 views

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 

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

1 follower(s)


Asked: 12/11/15, 12:28 AM
Seen: 4108 times
Last updated: 12/14/15, 6:07 AM