nell'upgrade della 13 non si è bloccato il processo con un errore, ma analizzando il file di log ho i seguenti errori .
2022-12-29 16:39:27,180 878 ERROR odoo odoo.sql_db: bad query: INSERT INTO "res_groups" ("id", "create_uid", "create_date", "write_ui$
ERROR: ERRORE: un valore chiave duplicato viola il vincolo univoco "res_groups_name_uniq"
DETTAGLI: La chiave (category_id, name)=(14, Discount on lines) esiste già.
2022-12-29 16:39:27,182 878 ERROR odoo odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 717, in parse
self._tag_root(de)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 679, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 679, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 582, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 4203, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 4104, in _load_records_create
return self.create(values)
File "<decorator-gen-91>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 320, in _model_create_single
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 320, in <genexpr>
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/addons/base/models/res_users.py", line 1045, in create
user = super(GroupsView, self).create(values)
File "<decorator-gen-89>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 338, in _model_create_multi
return create(self, [arg])
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/addons/base/models/res_users.py", line 949, in create
groups = super(GroupsImplied, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 339, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 3828, in create
records = self._create(data_list)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 3934, in _create
cr.execute(query, params)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/sql_db.py", line 173, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/sql_db.py", line 250, in execute
res = self._obj.execute(query, params)
psycopg2.IntegrityError: ERRORE: un valore chiave duplicato viola il vincolo univoco "res_groups_name_uniq"
DETTAGLI: La chiave (category_id, name)=(14, Discount on lines) esiste già.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/modules/loading.py", line 489, in load_modules
force, status, report, loaded_modules, update_module, models_to_check, upg_registry)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/modules/loading.py", line 368, in load_marked_modules
upg_registry=upg_registry,
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/modules/loading.py", line 248, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/modules/loading.py", line 72, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 741, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 808, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 726, in parse
exc_info[2]
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 717, in parse
self._tag_root(de)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 679, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 582, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 4203, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 4104, in _load_records_create
return self.create(values)
File "<decorator-gen-91>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 320, in _model_create_single
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 320, in <genexpr>
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/addons/base/models/res_users.py", line 1045, in create
user = super(GroupsView, self).create(values)
File "<decorator-gen-89>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 338, in _model_create_multi
return create(self, [arg])
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/addons/base/models/res_users.py", line 949, in create
groups = super(GroupsImplied, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 339, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 3828, in create
records = self._create(data_list)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 3934, in _create
cr.execute(query, params)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/sql_db.py", line 173, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/sql_db.py", line 250, in execute
res = self._obj.execute(query, params)
odoo.tools.convert.ParseError: "ERRORE: un valore chiave duplicato viola il vincolo univoco "res_groups_name_uniq"
DETTAGLI: La chiave (category_id, name)=(14, Discount on lines) esiste già.
" while parsing /usr/lib/python3/dist-packages/odoo/addons/product/security/product_security.xml:2, near
<odoo>
2022-12-29 16:39:27,184 878 CRITICAL odoo odoo.service.server: Failed to initialize database `odoo`.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 717, in parse
self._tag_root(de)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 679, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 679, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 582, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 4203, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 4104, in _load_records_create
return self.create(values)
File "<decorator-gen-91>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 320, in _model_create_single
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 320, in <genexpr>
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/addons/base/models/res_users.py", line 1045, in create
user = super(GroupsView, self).create(values)
File "<decorator-gen-89>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 338, in _model_create_multi
return create(self, [arg])
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/addons/base/models/res_users.py", line 949, in create
groups = super(GroupsImplied, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 339, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 3828, in create
records = self._create(data_list)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 3934, in _create
cr.execute(query, params)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/sql_db.py", line 173, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/sql_db.py", line 250, in execute
res = self._obj.execute(query, params)
psycopg2.IntegrityError: ERRORE: un valore chiave duplicato viola il vincolo univoco "res_groups_name_uniq"
DETTAGLI: La chiave (category_id, name)=(14, Discount on lines) esiste già.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/service/server.py", line 1194, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/modules/loading.py", line 489, in load_modules
force, status, report, loaded_modules, update_module, models_to_check, upg_registry)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/modules/loading.py", line 368, in load_marked_modules
upg_registry=upg_registry,
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/modules/loading.py", line 248, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/modules/loading.py", line 72, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 741, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 808, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 726, in parse
exc_info[2]
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 717, in parse
self._tag_root(de)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 679, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 679, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/tools/convert.py", line 582, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 4203, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 4104, in _load_records_create
return self.create(values)
File "<decorator-gen-91>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 320, in _model_create_single
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 320, in <genexpr>
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/addons/base/models/res_users.py", line 1045, in create
user = super(GroupsView, self).create(values)
File "<decorator-gen-89>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 338, in _model_create_multi
return create(self, [arg])
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/addons/base/models/res_users.py", line 949, in create
groups = super(GroupsImplied, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/api.py", line 339, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 3828, in create
records = self._create(data_list)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/models.py", line 3934, in _create
cr.execute(query, params)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/sql_db.py", line 173, in wrapper
return f(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/OpenUpgrade/odoo/sql_db.py", line 250, in execute
res = self._obj.execute(query, params)
odoo.tools.convert.ParseError: "ERRORE: un valore chiave duplicato viola il vincolo univoco "res_groups_name_uniq"
DETTAGLI: La chiave (category_id, name)=(14, Discount on lines) esiste già.
" while parsing /usr/lib/python3/dist-packages/odoo/addons/product/security/product_security.xml:2, near&