skills/smithery.ai/tranvietphuoc-odoo-19-dev

tranvietphuoc-odoo-19-dev

SKILL.md

Odoo 19 Development Expert

This skill provides specialized knowledge and workflows for developing, debugging, and maintaining Odoo 19 applications using Docker-based environments.

Core Principles

  1. Strict Odoo 19 Compliance: Always use the latest ORM API (api.model, api.depends) and Owl 2 components. Avoid deprecated features.
  2. OCA Standards: Adhere to the Odoo Community Association guidelines for naming, structure, and security.
  3. Docker-First Workflow: Assume development happens in a Docker container (via docker-compose).
  4. Security First: Always define ir.model.access.csv and necessary Record Rules. Use api.constrains for data integrity.

Reference Guides

This skill includes specialized guides. Read them based on the task:

Common Workflows

Creating a New Module

  1. Scaffold: Use the official command: docker-compose -f <compose_file> exec -it odoo odoo scaffold my_module /mnt/extra-addons. (Use docker-compose.dev.phuoctv.yml if it exists, otherwise fallback to .dev.yml or .yml)
  2. Manifest: Defines dependencies and assets (generated automatically).
  3. Models: Create models/ (Python files) and ir.model.access.csv in security/.
  4. Views: Create views/ (XML files) for menus, forms, trees, and search views.
  5. Install: Update the module list and install via UI or command line.

Debugging

  • Python: Use import pdb; pdb.set_trace() inside the method. Attach to the container (see Docker guide).
  • Frontend: Use browser DevTools and the "Owl" tab (if available).
  • Logs: Check docker-compose -f docker-compose.dev.phuoctv.yml logs -f odoo for server-side errors.

Advanced Shell & Testing

  • Odoo Shell: Use scripts/odoo_shell.sh to interact with the database via Python.
  • Run Tests: Use scripts/run_tests.sh <module_name> to execute the module suite.

Prompting Tips

  • When asking for code, specify if it's for a Model, Controller, or Component.
  • Ask to "Scaffold a module X" to get the full directory structure.
Weekly Installs
1
First Seen
Feb 28, 2026
Installed on
antigravity1