コンテンツへスキップ
メニュー
この質問にフラグが付けられました
8 返信
17966 ビュー

Hi;


I have this message on new database creation, i tried with different languages still not working  :

Database creation error: Wrong value for base.language.install.lang: u'en_US'

2018-01-09 09:41:41,428 3129 ERROR PROD-LEXINTA1 odoo.http: Wrong value for base.language.install.lang: u'en_GB'

Traceback (most recent call last):

File "/odoo/odoo-server/odoo/http.py", line 118, in dispatch_rpc

result = dispatch(method, params)

File "/odoo/odoo-server/odoo/service/common.py", line 57, in dispatch

return g[exp_method_name](*params)

File "/odoo/odoo-server/odoo/service/common.py", line 29, in exp_authenticate

res_users = odoo.registry(db)['res.users']

File "/odoo/odoo-server/odoo/__init__.py", line 52, in registry

return modules.registry.Registry(database_name)

File "/odoo/odoo-server/odoo/modules/registry.py", line 59, in __new__

return cls.new(db_name)

File "/odoo/odoo-server/odoo/modules/registry.py", line 83, in new

odoo.modules.load_modules(registry._db, force_demo, status, update_module)

File "/odoo/odoo-server/odoo/modules/loading.py", line 289, in load_modules

tools.load_language(cr, lang)

File "/odoo/odoo-server/odoo/tools/translate.py", line 1201, in load_language

installer = env['base.language.install'].create({'lang': lang})

File "/odoo/odoo-server/odoo/models.py", line 3823, in create

record = self.browse(self._create(old_vals))

File "/odoo/odoo-server/odoo/models.py", line 3903, in _create

self._check_selection_field_value(name, val)

File "/odoo/odoo-server/odoo/models.py", line 2122, in _check_selection_field_value

field.convert_to_cache(value, self)

File "/odoo/odoo-server/odoo/fields.py", line 1780, in convert_to_cache

raise ValueError("Wrong value for %s: %r" % (self, value))

ValueError: Wrong value for base.language.install.lang: u'en_GB'

アバター
破棄
最善の回答

Hi 

I am also facing this issue when trying to install the odoo 10 with postgresql9.6. I searched in the google, but did't find exact solution. I tried "ALTER ROLE odoo SET client_encoding = 'UTF8';" in the psql command and after that this error is gone. 

ALTER ROLE <rolename> SET client_encoding = 'UTF8';
アバター
破棄
最善の回答

Open up PGADMIN and run the sql;

ALTER ROLE openpg SET client_encoding = 'UTF8';


"openpg" is the user role am using

アバター
破棄
著作者 最善の回答

Hello all;

What i did is i replace the all odoo core folder by new one.

アバター
破棄

Sure, you did this one and solve it? Because I'm using git from the source and still have this problem.

著作者

Hello yeah sure, i don't think it's the best way but it works for me, remove the whole Odoo core and pull it again

最善の回答

can anyone help with this ?

アバター
破棄
最善の回答

Issue is with Postgres.

Unset client_encoding within your Postgres configuration.

https://github.com/odoo/odoo/issues/835

アバター
破棄
最善の回答

Hi AITLAMSAL,

Have you found the error yet?


Regards.

アバター
破棄
関連投稿 返信 ビュー 活動
2
7月 25
4151
3
5月 25
1396
2
12月 24
7422
2
11月 24
28094
2
5月 24
7153