콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
141 화면

Hello,


I am trying to upgrade from Odoo 17 to Odoo 18 on Odoo.sh. The upgrade is in the final stage, waiting for a commit to proceed. The problem is that I am seeing the following error:


"odoo.modules.loading: Some modules have inconsistent states, some dependencies may be missing: ['module-x', 'module-y']." I used fake names for the modules.


The issue is that neither of these modules is part of what I added, nor do they exist in the original Odoo addons. I searched for any references to them using grep in the shell, but I found no mention of them anywhere except in the log entry. They do not exist in the custom code files either. Is there a way to force the update to work despite this error?

아바타
취소

At that point the actual module names could be helpful. Also, in your production Odoo 17, can you find them in Apps (without the Apps filter). Could be that those modules in fact have been installed in the past and then got removed from your repository without actually uninstalling the modules first.

베스트 답변

Hi,



The error appears because Odoo still contains old or missing module references in the database, even if those modules no longer exist in your code. During an upgrade, Odoo checks all installed modules and their dependencies, and if it finds modules that are missing or can’t be loaded, it marks them as inconsistent, stopping the process.


You cannot directly force the upgrade to continue, but you can fix it by cleaning up the database. The best way is to remove the invalid module entries from the ir_module_module table using SQL, for example:

DELETE FROM ir_module_module WHERE name IN ('module-x', 'module-y');


If these modules were once dependencies, you should also remove related records from the ir_model_data table:

DELETE FROM ir_model_data WHERE module IN ('module-x', 'module-y');

After that, restart Odoo or re-run the upgrade process, and it should complete normally.


Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
1
7월 20
3922
0
11월 24
1811
2
7월 25
1874
1
6월 25
1512
0
10월 24
1486