一键导入
odoo-debug
Use when diagnosing Odoo issues — reads logs, maps common errors to fixes, checks module states, with snapshot-based rollback
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when diagnosing Odoo issues — reads logs, maps common errors to fixes, checks module states, with snapshot-based rollback
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when importing, creating, or managing business data in Odoo — CSV imports, bulk record creation, data migration, user setup
Use when building dashboards, analyzing business data, or creating reports — KPI definition, SQL analytics, dashboard creation
Use when setting up Odoo for a business — guides the full Discover, Plan, Build flow from natural language requirements
Use when designing Odoo data models — enforces naming conventions, inheritance patterns, security, and field best practices
Use when exploring Odoo customization ideas — discovers modules, matches blueprints, decides configuration vs code generation
| name | odoo-debug |
| description | Use when diagnosing Odoo issues — reads logs, maps common errors to fixes, checks module states, with snapshot-based rollback |
Diagnose and fix Odoo issues systematically.
Always start here:
odoo_diagnostics_health_check(db_name="your_db")
This checks Docker, database, auth, modules, and logs in one call.
odoo_instance_logs(lines=100, level_filter="ERROR")
odoo_instance_logs(lines=50, grep="your_module_name")
| Error Pattern | Likely Cause | Fix |
|---|---|---|
Module not found | Module not in addons path | Check Docker volume mounts, restart |
Access Denied | Wrong credentials or no access | Check ODOO_ADMIN_USER, ODOO_ADMIN_PASSWORD |
relation "table" does not exist | Missing migration | odoo_module_install or odoo_module_upgrade |
Field "x_field" does not exist | Custom field deleted | odoo_schema_field_create to recreate |
View error / Invalid XML | Malformed view customization | odoo_view_reset then odoo_view_modify |
QWeb error | Report template issue | odoo_report_reset then odoo_report_modify |
RecursionError | Circular computed fields | Check model inheritance chain |
psycopg2.OperationalError | Database connection issue | Check PostgreSQL, restart instance |
Memory limit exceeded | Large data operation | Increase Docker memory, batch operations |
odoo_module_list_installed(db_name="your_db")
odoo_module_info(db_name="your_db", module_name="problem_module")
Module states:
installed — working normallyto upgrade — pending upgrade (restart Odoo to apply)to install — pending install (restart Odoo to apply)uninstalled — available but not activeuninstallable — dependencies not metodoo_record_search(db_name="db", model="ir.module.module", domain=[["state", "=", "to upgrade"]])
odoo_db_run_sql(db_name="db", query="SELECT count(*) FROM ir_attachment WHERE res_model = 'problem.model'")
Always create a snapshot before attempting fixes:
odoo_snapshot_create(db_name="db", name="before_fix", description="Before debugging fix attempt")
If the fix makes things worse:
odoo_snapshot_restore(db_name="db", snapshot_name="before_fix")
These are destructive — always confirm before using:
odoo_view_reset removes all view customizations for a modelodoo_db_drop + odoo_db_restore from backupodoo_instance_restart — clears caches and reconnectsModule won't install:
View broken after customization:
odoo_view_list_customizations to see what changedodoo_view_reset to restore originalodoo_view_modifyAutomation not firing:
odoo_automation_list to check automation stateodoo_automation_update to fix trigger or action