Error:
Odoo Server Error
Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/odoo/odoo-server/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/odoo/odoo-server/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 915, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1326, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1314, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/odoo/odoo-server/addons/l10n_multilang/models/l10n_multilang.py", line 138, in lang_install
res = super(BaseLanguageInstall, self).lang_install()
File "/odoo/odoo-server/addons/website/wizard/base_language_install.py", line 24, in lang_install
action = super(BaseLanguageInstall, self).lang_install()
File "/odoo/odoo-server/odoo/addons/base/wizard/base_language_install.py", line 36, in lang_install
mods.with_context(overwrite=self.overwrite)._update_translations(self.lang)
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 894, in _update_translations
self.env['ir.translation']._load_module_terms(mod_names, filter_lang)
File "/odoo/odoo-server/addons/website/models/ir_translation.py", line 11, in _load_module_terms
res = super()._load_module_terms(modules, langs)
File "/odoo/odoo-server/odoo/addons/base/models/ir_translation.py", line 833, in _load_module_terms
tools.trans_load(self._cr, trans_file, lang, verbose=False, module_name=module_name, context=context)
File "/odoo/odoo-server/odoo/tools/translate.py", line 1070, in trans_load
result = trans_load_data(cr, fileobj, fileformat, lang, verbose=verbose, module_name=module_name, context=context)
File "/odoo/odoo-server/odoo/tools/translate.py", line 1123, in trans_load_data
irt_cursor.finish()
File "/odoo/odoo-server/odoo/addons/base/models/ir_translation.py", line 116, in finish
cr.execute(""" INSERT INTO %s(name, lang, res_id, src, type, value, module, state, comments)
File "/odoo/odoo-server/odoo/sql_db.py", line 168, in wrapper
return f(self, *args, **kwargs)
File "/odoo/odoo-server/odoo/sql_db.py", line 245, in execute
res = self._obj.execute(query, params)
psycopg2.errors.CardinalityViolation: ON CONFLICT DO UPDATE command cannot affect row a second time
HINT: Ensure that no rows proposed for insertion within the same command have duplicate constrained values.