跳至内容
菜单
此问题已终结
1 回复
395 查看

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
233
0
7月 25
1233
0
7月 25
3
0
7月 25
6
0
7月 25
270