module_analysis
у server-tools · джерело на GitHub
Add analysis tools regarding installed modules to know which installed modules comes from Odoo Core, OCA, or are custom modules
GRAP · AGPL-3
| Серія | Статус | Деталі | Код |
|---|---|---|---|
| 16.0 | ✓Встановлюється | · прогін 2026-08-21 · 16.0.1.0.5 | на GitHub |
| 17.0 | ✓Встановлюється | · прогін 2026-08-20 · 17.0.1.0.3 | на GitHub |
| 18.0 | ✗Помилка install | НЕРОЗПІЗНАНО: ImportError: Failed to initialize: Bad git executable. · прогін 2026-08-27 | на GitHub |
| 19.0 | —Не тестовано | гілки немає | |
| 20.0 | —Не тестовано | гілки немає |
Код модуля на 18.0
| Рядків коду | python 367 · xml 311 |
| Тести | так: 1 файл(ів), 45 рядків |
| Скрипти міграції | ні |
| Моделі | 3 нових · 1 розширень |
Рядки — фізичні, разом із порожніми й коментарями, як wc -l. Тести — файли test_*.py у теці tests/. Моделі — рядки з _name = і _inherit =. Це факти про код, а не оцінка: більше рядків не означає ні краще, ні гірше. Зміряно 2026-08-28 на дереві 21ef441b12bb.
У каталозі apps.odoo.com є листинг під тією самою технічною назвою на 16.0, 17.0, 18.0: apps.odoo.com/apps/modules/18.0/module_analysis. Збіг назви не доводить збіг коду — як ми це рахували.
Залежить від
| Модуль | Статус | Перевірено |
|---|---|---|
| base | ядро | йде в самому Odoo |
Зовнішні залежності
Перевірено проти modidx/odoo:18.0-deps-20260820.
| Вид | Пакет | У нашому образі |
|---|---|---|
| python | pygount | є в образі |
Історія
| Остання зміна | 2025-12-16 |
| Комітів коду за 12 міс | 30 |
| Найактивніші | Telmo Santos, Florian da Costa, Sylvain LE GAL |
| Файлів | 41 |
Переклади й коміти ботів у підрахунок не входять.
Лог прогону 18.0
Warn: Can't find .pfb for face 'Courier'
2026-08-27 07:55:30,242 1 CRITICAL job_0ee16f006b3c odoo.modules.module: Couldn't load module module_analysis
2026-08-27 07:55:30,273 1 WARNING job_0ee16f006b3c odoo.modules.loading: Transient module states were reset
2026-08-27 07:55:30,274 1 ERROR job_0ee16f006b3c odoo.modules.registry: Failed to load registry
2026-08-27 07:55:30,274 1 CRITICAL job_0ee16f006b3c odoo.service.server: Failed to initialize database `job_0ee16f006b3c`.
Traceback (most recent call last):
File "/usr/local/lib/python3.12/dist-packages/git/__init__.py", line 296, in <module>
refresh()
File "/usr/local/lib/python3.12/dist-packages/git/__init__.py", line 287, in refresh
if not Git.refresh(path=path):
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/git/cmd.py", line 876, in refresh
raise ImportError(err)
ImportError: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh(<full-path-to-git-executable>)
All git commands will error until this is rectified.
This initial message can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
- quiet|q|silence|s|silent|none|n|0: for no message or exception
- warn|w|warning|log|l|1: for a warning message (logging level CRITICAL, displayed by default)
- error|e|exception|raise|r|2: for a raised exception
Example:
export GIT_PYTHON_REFRESH=quiet
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1414, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 97, in locked
return func(inst, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 118, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 489, in load_modules
processed_modules += load_marked_modules(env, graph,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 365, in load_marked_modules
loaded, processed = load_module_graph(
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 186, in load_module_graph
load_openerp_module(package.name)
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 384, in load_openerp_module
__import__(qualname)
File "/mnt/pool/module_analysis/__init__.py", line 1, in <module>
from . import models
File "/mnt/pool/module_analysis/models/__init__.py", line 2, in <module>
from . import ir_module_module
File "/mnt/pool/module_analysis/models/ir_module_module.py", line 9, in <module>
from pygount import SourceAnalysis
File "/usr/local/lib/python3.12/dist-packages/pygount/__init__.py", line 9, in <module>
from .analysis import DuplicatePool, SourceAnalysis, SourceScanner, SourceState, encoding_for
File "/usr/local/lib/python3.12/dist-packages/pygount/analysis.py", line 33, in <module>
from pygount.git_storage import GitStorage, git_remote_url_and_revision_if_any
File "/usr/local/lib/python3.12/dist-packages/pygount/git_storage.py", line 6, in <module>
import git
File "/usr/local/lib/python3.12/dist-packages/git/__init__.py", line 298, in <module>
raise ImportError("Failed to initialize: {0}".format(_exc)) from _exc
ImportError: Failed to initialize: Bad git executable.
The git executable must be specified in one of the following ways:
- be included in your $PATH
- be set via $GIT_PYTHON_GIT_EXECUTABLE
- explicitly set via git.refresh(<full-path-to-git-executable>)
All git commands will error until this is rectified.
This initial message can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
- quiet|q|silence|s|silent|none|n|0: for no message or exception
- warn|w|warning|log|l|1: for a warning message (logging level CRITICAL, displayed by default)
- error|e|exception|raise|r|2: for a raised exception
Example:
export GIT_PYTHON_REFRESH=quietРезультат виглядає неправильним? Повідомте — ми покажемо лог або перепрогонимо. Повідомити про хибний результат