コンテンツへスキップ
Odoo メニュー
  • サインイン
  • 無料で15日試す
  • アプリ
    財務
    • 会計
    • 請求
    • 経費
    • スプレッドシート(BI)
    • ドキュメント管理
    • 署名
    販売
    • CRM
    • 販売
    • POS店舗
    • POSレストラン
    • サブスクリプション
    • レンタル
    ウェブサイト
    • ウェブサイトビルダー
    • eコマース
    • ブログ
    • フォーラム
    • ライブチャット
    • eラーニング
    サプライチェーン
    • 在庫
    • 製造
    • 製品ライフサイクル管理 (PLM)
    • 購買
    • 整備
    • 品質
    人事業務
    • 従業員管理
    • 採用
    • 休暇管理
    • 人事評価
    • リファラル
    • フリート
    マーケティング
    • ソーシャルマーケティング
    • メールマーケティング
    • SMSマーケティング
    • イベント
    • マーケティングオートメーション
    • アンケート調査
    サービス
    • プロジェクト管理
    • タイムシート
    • フィールドサービス
    • ヘルプデスク
    • 計画
    • アポイントメント
    生産性向上ツール
    • ディスカッション
    • 承認
    • IoT
    • VoIP
    • ナレッジ
    • WhatsApp
    サードパーティアプリ Odooスタジオ Odooクラウドプラットホーム
  • インダストリー(業種別ソリューション)
    小売
    • 書店
    • アパレルショップ
    • 家具専門店
    • 食料品店
    • 金物店
    • 玩具店
    飲食・ホスピタリティ業界
    • バー・パブ
    • レストラン
    • ファストフード
    • ゲストハウス
    • 飲料販売代理店
    • ホテル
    不動産
    • 不動産会社
    • 建築事務所
    • 建設
    • 不動産管理
    • 造園
    • 住宅所有者組合
    コンサルティング
    • 会計事務所
    • Odooパートナー
    • マーケティングエージェンシー
    • 法律事務所
    • 人材派遣
    • 監査・認証
    製造
    • テキスタイル
    • 金属
    • 家具
    • 飲食
    • 醸造所
    • コーポレートギフト
    ヘルス & フィットネス
    • スポーツクラブ
    • 眼鏡店
    • フィットネスセンター
    • ウェルネス専門家
    • 薬局
    • ヘアサロン
    業種
    • 便利屋
    • IT ハードウェア・サポート
    • 太陽エネルギーシステム
    • 靴メーカー
    • クリーニングサービス
    • 空調設備サービス
    その他
    • 非営利団体
    • 環境機関
    • ビルボードレンタル
    • 写真
    • 自転車リース
    • ソフトウェアリセラー
    すべての業種を見る
  • コミュニティ
    学ぶ
    • チュートリアル
    • ドキュメンテーション
    • 認定
    • トレーニング
    • ブログ
    • ポッドキャスト
    教育サポート
    • 教育プログラム
    • Scale Up! ビジネスゲーム
    • Odooオフィス訪問
    ソフトを入手
    • ダウンロード
    • エディションを比較
    • リリース
    コラボレーション
    • Github
    • フォーラム
    • イベント
    • 翻訳
    • パートナーになる
    • パートナー様向けサービス
    • 会計事務所を登録
    サービス利用
    • パートナー一覧
    • 会計事務所一覧
    • 今すぐ相談する
    • 導入支援サービス
    • お客様一覧
    • サポート
    • アップグレード
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    製品デモを利用する
  • 料金
  • ヘルプ

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • 会計
  • 在庫
  • PoS
  • プロジェクト
  • MRP
All apps
コミュニティで交流するには登録する必要があります。
全てのポスト 人々 バッジ
タグ (全て表示)
odoo accounting v14 pos v15
このフォーラムについて
コミュニティで交流するには登録する必要があります。
全てのポスト 人々 バッジ
タグ (全て表示)
odoo accounting v14 pos v15
このフォーラムについて
ヘルプ

Upgrading From Odoo17 to Odoo18 test fails

購読

この投稿に活動があった際に通知を受け取ります

この質問にフラグが付けられました
testdatabaseupgradingupgradetestingodooV17Odoov18
4 返信
571 ビュー
アバター
samual

Hello, 


I am trying to upgrade from odoo17 to odoo18 on odoo.sh the upgrade is on the last stage awaiting a commit so it works the problem is that it is showing 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 thing is both these modules are not part of the modules i added nor they exists in the original odoo addons i tried looking every possible reference of them using grep in the shell but there is no reference of them anyware except in the log entry and they dont exist in the custom code files. Is there a way to force the update to work despite this error?

0
アバター
破棄
アバター
Cybrosys Techno Solutions Pvt.Ltd
最善の回答

Hi,


The error occurs because Odoo still detects modules in the database (ir_module_module) that are marked as installed or present, even though they no longer exist in your code. These leftover references can happen if a module was removed without proper uninstallation, or if branches or upgrades changed the addons path. Odoo reads these database records before the upgrade, which is why it reports missing dependencies even though the code doesn’t contain them.


Searching your codebase with grep won’t help because the problem resides in the database metadata, not the files. Tables like ir_module_module, ir_module_module_dependency, and ir_model_data store module states, dependencies, and module-specific data. Missing modules in these tables can block upgrades.


The recommended solution is to mark the missing modules as uninstalled directly in the database, for example by updating ir_module_module or removing leftover dependency and data entries. Alternatively, you could temporarily add dummy modules with the same names to satisfy Odoo and then uninstall them properly. After these steps, running an update (-u all) will allow the upgrade to proceed.


Direct SQL manipulation should be done carefully with a backup, as it ensures database integrity and prevents upgrade failures. Once the database no longer references the missing modules, the upgrade to Odoo 18 should complete successfully.


Hope it helps

1
アバター
破棄
samual
著作者

Hi
Thanks for the reply adding dummy modules worked
but now the upgrade is always waiting for user commit if i exit upgrade mode the branch reverts back to odoo17 is this normal?

アバター
Dhara
最善の回答

Some of the most common issues that can make a test fail while upgrading from Odoo 17 to Odoo 18 are compatibility problems with custom modules, database schema changes, or missing dependencies. Some functionality or features are deprecated from Odoo 17 that might not work exactly as in Odoo 17 after the migration because the core system was updated. Check errors in the logs, make necessary modifications to your custom modules to be compatible with Odoo 18, and ensure all the required dependencies related to Python or JS are installed. Testing at each step will help you identify and fix the problem.


Any Other information, you will contact us at our Email id: odoo@devintellecs.com and  contact number: +91 87805 43446

0
アバター
破棄
アバター
johncina
最善の回答

wow

0
アバター
破棄
アバター
Bloopark systems GmbH & Co. KG
最善の回答

Hello,

The reason for such error could be that, the database still expects these modules exist (their records are in ir_module_module), But the actual source code for these modules doesn’t exist anymore in your repo or Odoo core. During upgrade, Odoo tries to check dependencies and can’t find those that fails to proceed.


How did that happened , following could be the cases:

- This could happen due to the module used to exist in your custom addons in v17 but was deleted/renamed before upgrading.

- The module was part of another dependency (e.g., website_*, crm_*, pos_*) that changed structure in v18.

- The module was referenced as a dependency (depends in __manifest__.py) of another module, but that dependency module was removed in v18.

- The module entries remain in ir_module_module table, even though the code is gone.


What you could still check:

Run the below query in the database of v17,

SELECT id, state name FROM ir_module_module where name::text in ('module_x', 'module_y');

If the modules exist in the db then ,if you get records you can safely mark them as uninstalled manually before restarting the upgrade, using the query below:

UPDATE ir_module_module SET state = 'uninstalled' WHERE id in (id_x, id_y);

Once updated, try again your upgrade.

Hope it helps


0
アバター
破棄
ディスカッションを楽しんでいますか?読むだけでなく、参加しましょう!

今すぐアカウントを作成して、限定機能を利用したり、素晴らしいコミュニティと交流しましょう!

登録
関連投稿 返信 ビュー 活動
Upgrade Odoo 13e to 16e
database upgrading
アバター
0
8月 23
2003
Why native test fails? 解決済
test testing
アバター
アバター
2
6月 20
7311
Override test
test testing
アバター
0
11月 19
4975
Upgrading without uploading database to Odoo?
database upgrade
アバター
アバター
アバター
2
11月 19
3589
upgrade one module for all database in odoo 10
database upgrade
アバター
0
5月 17
3801
コミュニティ
  • チュートリアル
  • ドキュメンテーション
  • フォーラム
オープンソース
  • ダウンロード
  • Github
  • Runbot
  • 翻訳
サービス
  • Odoo.shホスティング
  • サポート
  • アップグレード
  • カスタム開発
  • 教育プログラム
  • 会計事務所一覧
  • パートナー一覧
  • パートナーになる
企業情報
  • 会社概要
  • ブランドアセット
  • お問い合わせ
  • 採用情報
  • イベント
  • ポッドキャスト
  • ブログ
  • お客様一覧
  • リーガル情報 • プライバシーポリシー
  • セキュリティ
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo(オドゥー)は、CRM、eコマース、会計、在庫管理、POS、プロジェクト管理など、企業のさまざまな業務を一つのシステムで管理できる、ベルギー発のオープンソースのERPソフトウェアです。

高機能で使いやすく、完全に統合されたERPとして、ユニークな価値を提供しています。

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now