Skip to Content
Menu
This question has been flagged
1648 Views

Odoo

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/odoo/odoo-server/odoo/http.py", line 687, in dispatch
    result = self._call_function(**self.params)
  File "/odoo/odoo-server/odoo/http.py", line 359, 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 348, in checked_call
    result = self.endpoint(*a, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 916, in __call__
    return self.method(*args, **kw)
  File "/odoo/odoo-server/odoo/http.py", line 535, in response_wrap
    response = f(*args, **kw)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 1336, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/odoo/odoo-server/addons/web/controllers/main.py", line 1324, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/odoo/odoo-server/addons/l10n_multilang/models/l10n_multilang.py", line 155, in lang_install
    res = super(BaseLanguageInstall, self).lang_install()
  File "/odoo/odoo-server/odoo/addons/base/wizard/base_language_install.py", line 37, in lang_install
    mods._update_translations(self.lang, self.overwrite)
  File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 931, in _update_translations
    self.env['ir.translation']._load_module_terms(mod_names, filter_lang, overwrite)
  File "/odoo/odoo-server/odoo/addons/base/models/ir_translation.py", line 819, in _load_module_terms
    tools.trans_load(self._cr, trans_file, lang, verbose=False, overwrite=overwrite)
  File "/odoo/odoo-server/odoo/tools/translate.py", line 1159, in trans_load
    return trans_load_data(cr, fileobj, fileformat, lang,
  File "/odoo/odoo-server/odoo/tools/translate.py", line 1222, in trans_load_data
    irt_cursor.finish()
  File "/odoo/odoo-server/odoo/addons/base/models/ir_translation.py", line 108, in finish
    cr.execute(""" INSERT INTO %s(name, lang, res_id, src, type, value, module, state, comments)
  File "", line 2, in execute
  File "/odoo/odoo-server/odoo/sql_db.py", line 89, in check
    return f(self, *args, **kwargs)
  File "/odoo/odoo-server/odoo/sql_db.py", line 310, in execute
    res = self._obj.execute(query, params)
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 643, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/odoo/odoo-server/odoo/http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
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.

 

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 24
3122
1
Dec 24
350
4
Nov 24
1364
1
Sep 24
1134
1
Sep 24
1200