Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0] Erro ao realizar tradução #1225

Open
JacksonOsvaldo opened this issue Sep 22, 2022 · 0 comments
Open

[12.0] Erro ao realizar tradução #1225

JacksonOsvaldo opened this issue Sep 22, 2022 · 0 comments

Comments

@JacksonOsvaldo
Copy link

JacksonOsvaldo commented Sep 22, 2022

Após instalação dos módulos da Trust na versão 12, não consigo mais realizar a atualização de linguagem. Ocorre o seguinte erro:

Odoo Server Error
Traceback (most recent call last):
  File "/cloudclusters/odoo/odoo/http.py", line 656, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/cloudclusters/odoo/odoo/http.py", line 314, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/cloudclusters/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/cloudclusters/odoo/odoo/http.py", line 698, in dispatch
    result = self._call_function(**self.params)
  File "/cloudclusters/odoo/odoo/http.py", line 346, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/cloudclusters/odoo/odoo/service/model.py", line 98, in wrapper
    return f(dbname, *args, **kwargs)
  File "/cloudclusters/odoo/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/cloudclusters/odoo/odoo/http.py", line 941, in __call__
    return self.method(*args, **kw)
  File "/cloudclusters/odoo/odoo/http.py", line 519, in response_wrap
    response = f(*args, **kw)
  File "/cloudclusters/odoo/odoo/addons/web/controllers/main.py", line 967, in call_button
    action = self._call_kw(model, method, args, {})
  File "/cloudclusters/odoo/odoo/addons/web/controllers/main.py", line 955, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/cloudclusters/odoo/odoo/api.py", line 759, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/cloudclusters/odoo/odoo/api.py", line 746, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/cloudclusters/odoo/odoo/addons/base/wizard/base_language_install.py", line 36, in lang_install
    mods.with_context(overwrite=self.overwrite)._update_translations(self.lang)
  File "/cloudclusters/odoo/odoo/addons/base/models/ir_module.py", line 891, in _update_translations
    self.env['ir.translation'].load_module_terms(mod_names, filter_lang)
  File "/cloudclusters/odoo/odoo/addons/base/models/ir_translation.py", line 825, in load_module_terms
    tools.trans_load(self._cr, trans_file, lang, verbose=False, module_name=module_name, context=context)
  File "/cloudclusters/odoo/odoo/tools/translate.py", line 1016, in trans_load
    result = trans_load_data(cr, fileobj, fileformat, lang, verbose=verbose, module_name=module_name, context=context)
  File "/cloudclusters/odoo/odoo/tools/translate.py", line 1160, in trans_load_data
    irt_cursor.finish()
  File "/cloudclusters/odoo/odoo/addons/base/models/ir_translation.py", line 156, in finish
    """ % (self._model_table, self._table))
  File "/cloudclusters/odoo/odoo/sql_db.py", line 148, in wrapper
    return f(self, *args, **kwargs)
  File "/cloudclusters/odoo/odoo/sql_db.py", line 225, 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.
@JacksonOsvaldo JacksonOsvaldo changed the title [12.0] Error translate [12.0] Erro ao realizar tradução Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant