Skip to Content
Menu
This question has been flagged
2 Replies
4082 Views

Hi,

Please check this error for ,When I install openerp in centos 5 version it gets this error why? also add my error log

2014-08-11 09:26:11,981 13743 ERROR ? openerp.addons.web.http.JSONRequest.dispatch: An error occured while handling a json request
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 773, in create
    params['db_lang'],
KeyError: 'db_lang'
2014-08-11 09:26:11,984 13743 INFO ? werkzeug: 117.247.184.138 - - [11/Aug/2014 09:26:11] "POST /web/database/create HTTP/1.1" 200 -
2014-08-11 09:25:16,696 13743 INFO ? werkzeug: 117.247.184.138 - - [11/Aug/2014 09:25:16] "POST /web/database/get_list HTTP/1.1" 200 -
2014-08-11 09:26:11,981 13743 ERROR ? openerp.addons.web.http.JSONRequest.dispatch: An error occured while handling a json request
Traceback (most recent call last):
  File "/opt/openerp/server/openerp/addons/web/http.py", line 204, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 773, in create
    params['db_lang'],
KeyError: 'db_lang'

 

Avatar
Discard
Best Answer

Dep,

While creating the database, did you selected the language? try creating a new DB with the language selected, as this error comes because of missing language attribute while DB creation.

Hope it helps!

Avatar
Discard

anyway it should have came as a default, but due to some reason, it might not be there, try looking for it!

Best Answer

I didn't bother to check what was reason, but I did work around by replacing params['db_lang'], in /opt/odoo/odoo-server/addons/web/controllers/main.py in  create() (line no 702 in my case)  with 'en_US'.

Avatar
Discard