Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1328 Zobrazení

Trying to update modules in odoo 17 enterprise on prem.


I replaced all of the modules in my addon path for both enterprise & the base modules.


Ran:

python3 odoo-bin -u all -d my_database


Following error occurred:


2024-08-28 05:52:53,027 21304 WARNING launched odoo.modules.loading: Transient module states were reset 2024-08-28 05:52:53,027 21304 ERROR launched odoo.modules.registry: Failed to load registry Traceback (most recent call last): File "/opt/odoo/odoo-server/odoo/modules/registry.py", line 114, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/opt/odoo/odoo-server/odoo/modules/loading.py", line 422, in load_modules loaded_modules, processed_modules = load_module_graph( File "/opt/odoo/odoo-server/odoo/modules/loading.py", line 227, in load_module_graph load_data(env, idref, mode, kind='data', package=package) File "/opt/odoo/odoo-server/odoo/modules/loading.py", line 71, in load_data tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind) File "/opt/odoo/odoo-server/odoo/tools/convert.py", line 623, in convert_file convert_csv_import(env, module, pathname, fp.read(), idref, mode, noupdate) File "/opt/odoo/odoo-server/odoo/tools/convert.py", line 669, in convert_csv_import raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg)) Exception: Module loading base failed: file base/data/res.country.state.csv could not be processed: The values for the fields 'country_id, code' already exist (they are probably 'Country, State Code' in the current model). 2024-08-28 05:52:53,028 21304 CRITICAL launched odoo.service.server: Failed to initialize database launched. Traceback (most recent call last): File "/opt/odoo/odoo-server/odoo/service/server.py", line 1313, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "", line 2, in new File "/opt/odoo/odoo-server/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/opt/odoo/odoo-server/odoo/modules/registry.py", line 114, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/opt/odoo/odoo-server/odoo/modules/loading.py", line 422, in load_modules loaded_modules, processed_modules = load_module_graph( File "/opt/odoo/odoo-server/odoo/modules/loading.py", line 227, in load_module_graph load_data(env, idref, mode, kind='data', package=package) File "/opt/odoo/odoo-server/odoo/modules/loading.py", line 71, in load_data tools.convert_file(env, package.name, filename, idref, mode, noupdate, kind) File "/opt/odoo/odoo-server/odoo/tools/convert.py", line 623, in convert_file convert_csv_import(env, module, pathname, fp.read(), idref, mode, noupdate) File "/opt/odoo/odoo-server/odoo/tools/convert.py", line 669, in convert_csv_import raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg)) Exception: Module loading base failed: file base/data/res.country.state.csv could not be processed: The values for the fields 'country_id, code' already exist (they are probably 'Country, State Code' in the current model).


We haven't done any customizations yet & there's only two companies / websites in our database. What gives?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
čvc 25
1983
3
kvě 25
3463
2
dub 25
2365
2
čvn 25
4017
0
čvn 21
2326