Odoo Help

Welcome!

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.

0

Error "ValueError: Not naive datetime (tzinfo is already set)"

v8
By
José
on 7/8/15, 6:09 PM 872 views

Hello, I have Odoo8. I develop a custom module for reporting, and when I try to view the report, I get the error 

File "pytz\tzinfo.pyc", line 304, in localize

ValueError: Not naive datetime (tzinfo is already set)

I have already set the timezone of the user.

This is the complete error:


Odoo Server Error

Traceback (most recent call last):

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\http.py", line 530, in _handle_exception

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\http.py", line 567, in dispatch

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\http.py", line 303, in _call_function

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\service\model.py", line 113, in wrapper

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\http.py", line 300, in checked_call

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\http.py", line 796, in __call__

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\http.py", line 396, in response_wrap

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\openerp\addons\web\controllers\main.py", line 935, in call_kw

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\openerp\addons\web\controllers\main.py", line 927, in _call_kw

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\api.py", line 241, in wrapper

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\models.py", line 2151, in read_group

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\models.py", line 2151, in <lambda>

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\models.py", line 2151, in <dictcomp>

File "C:\Program Files (x86)\Odoo 8.0-20150331\server\.\openerp\models.py", line 1997, in _read_group_prepare_data

File "pytz\tzinfo.pyc", line 304, in localize

ValueError: Not naive datetime (tzinfo is already set)

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)

Stats

Asked: 7/8/15, 6:09 PM
Seen: 872 times
Last updated: 7/8/15, 6:11 PM