コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
433 ビュー

I'm working on a custom module deployment on Odoo.sh v15, and during the rebuild process, I'm getting a “Tests failed. Please check install log.” error.

However, the install log only shows this message and nothing more — no traceback, no errors, just that single line.

Here’s what I’ve already tried:

  • Checked for __manifest__.py syntax issues ✅
  • Verified dependencies and external modules ✅
  • Ran the module locally (works perfectly) ✅

Does anyone know how to get more detailed error output from Odoo.sh in this case? Or what could cause a silent failure like this?

Appreciate any guidance — even if it’s just a guess!

Thanks in advance 😊

アバター
破棄
最善の回答

Hi

This usually happens due to subtle causes that don't generate standard Python exceptions, especially in a --test-enable context. So the issue is Odoo.sh specific, and most likely tied to the test runner or non-standard return from an init/install function.



1-Missing installable: true or broken manifest field.

  If installable is not set to true, or fields like depends, data, or license are malformed, the module silently fails during the scan.


2. Broken test function without assertion or return.

Odoo.sh runs modules with --test-enable, even if no explicit tests are defined. A missing assertion, or an invalid ORM call in a @api.model method marked as a test, might cause Odoo.sh to abort tests without logging anything.

Check for methods starting with test_ in your models and remove or disable them temporarily.


3-Database initialization failure.

If the module:

                - Creates a view referencing a missing field,

                - Adds a security record with invalid XML,

                 - Loads a bad CSV or misconfigured access rule,then Odoo.sh may fail silently, especially if noupdate=1.

Temporarily remove XML files (data, views, security) in the manifest and re-test.


4. Use the runbot or sh shell for debugging.

Use the Odoo.sh shell to manually trigger module install with debug logs.



Check with the above conditions.


Hope it helps

アバター
破棄
関連投稿 返信 ビュー 活動
0
8月 25
247
0
7月 25
1251
0
7月 25
3
0
7月 25
6
0
7月 25
294