[12.0][xunnel_invoice] I try install xunnel invoice in odoo 12.0
Odoo Server Error
Traceback (most recent call last):
File "/.repo_requirements/odoo/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/.repo_requirements/odoo/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/.repo_requirements/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/.repo_requirements/odoo/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/.repo_requirements/odoo/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/.repo_requirements/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/.repo_requirements/odoo/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/.repo_requirements/odoo/odoo/http.py", line 939, in __call__
return self.method(*args, **kw)
File "/.repo_requirements/odoo/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/home/odoo/odoo-12.0/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/home/odoo/odoo-12.0/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/.repo_requirements/odoo/odoo/api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/.repo_requirements/odoo/odoo/api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-61>", line 2, in button_immediate_install
File "/home/odoo/odoo-12.0/odoo/addons/base/models/ir_module.py", line 71, in check_and_log
return method(self, *args, **kwargs)
File "/home/odoo/odoo-12.0/odoo/addons/base/models/ir_module.py", line 442, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/odoo/odoo-12.0/odoo/addons/base/models/ir_module.py", line 535, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/.repo_requirements/odoo/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/.repo_requirements/odoo/odoo/modules/loading.py", line 421, in load_modules
loaded_modules, update_module, models_to_check)
File "/.repo_requirements/odoo/odoo/modules/loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/.repo_requirements/odoo/odoo/modules/loading.py", line 231, in load_module_graph
module.with_context(overwrite=overwrite)._update_translations()
File "/home/odoo/enterprise/account_reports/models/account_financial_report.py", line 1323, in _update_translations
res = super(IrModuleModule, self)._update_translations(filter_lang=filter_lang)
File "/home/odoo/odoo-12.0/odoo/addons/base/models/ir_module.py", line 859, in _update_translations
self.env['ir.translation'].load_module_terms(mod_names, filter_lang)
File "/home/odoo/odoo-12.0/odoo/addons/base/models/ir_translation.py", line 765, in load_module_terms
tools.trans_load(self._cr, trans_file, lang, verbose=False, module_name=module_name, context=context)
File "/.repo_requirements/odoo/odoo/tools/translate.py", line 1015, in trans_load
result = trans_load_data(cr, fileobj, fileformat, lang, verbose=verbose, module_name=module_name, context=context)
File "/.repo_requirements/odoo/odoo/tools/translate.py", line 1159, in trans_load_data
irt_cursor.finish()
File "/home/odoo/odoo-12.0/odoo/addons/base/models/ir_translation.py", line 154, in finish
""" % (self._model_table, self._table))
File "/.repo_requirements/odoo/odoo/sql_db.py", line 148, in wrapper
return f(self, *args, **kwargs)
File "/.repo_requirements/odoo/odoo/sql_db.py", line 225, in execute
res = self._obj.execute(query, params)
psycopg2.ProgrammingError: 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.
Edited by Yanina