unclecatvn/agent-skills

odoo-16

Odoo 16 development reference for Python models and ORM (search, domain, readgroup, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups), cron and server actions, migrations and module upgrades, tes…

ソースを見る

使い方

  1. インストールコマンドをコピーし、自分の環境へ導入する前にソースを確認します。
  2. 必要なツール、認証情報、対応環境を原文で確認します。
  3. 入力と成果物を指定し、出力を資料と照合します。
npx skills add https://github.com/unclecatvn/agent-skills --skill odoo-16

開始前の確認

  • 導入にはモデル契約、API枠、ファイルへのアクセス許可は含まれません。
  • スター数や導入数は活動の指標であり、独立した品質・安全性試験ではありません。
リポジトリの原文

見出し、例、コード、表、リンク、参照画像を含む原文を表示しています。

Odoo 16 Skill - Master Index

Master index for all Odoo 16 development guides. Read the appropriate guide from references/ based on your task.

Quick Reference

TopicFileWhen to Use
Actionsreferences/odoo-16-actions-guide.mdCreating actions, menus, scheduled jobs, server actions
API Decoratorsreferences/odoo-16-decorator-guide.mdUsing @api decorators, compute fields, validation
Controllersreferences/odoo-16-controller-guide.mdWriting HTTP endpoints, routes, web controllers
Data Filesreferences/odoo-16-data-guide.mdXML/CSV data files, records, shortcuts
Developmentreferences/odoo-16-development-guide.mdCreating modules, manifest, reports, security, wizards
Field Typesreferences/odoo-16-field-guide.mdDefining model fields, choosing field types
Manifestreferences/odoo-16-manifest-guide.mdmanifest.py configuration, dependencies, hooks
Migrationreferences/odoo-16-migration-guide.mdUpgrading modules, data migration, version changes
Mixinsreferences/odoo-16-mixins-guide.mdmail.thread, activities, email aliases, tracking
Model Methodsreferences/odoo-16-model-guide.mdWriting ORM queries, CRUD operations, domain filters
OWL Componentsreferences/odoo-16-owl-guide.mdBuilding OWL UI components, hooks, services
Performancereferences/odoo-16-performance-guide.mdOptimizing queries, fixing slow code, preventing N+1
Reportsreferences/odoo-16-reports-guide.mdQWeb reports, PDF/HTML, templates, paper formats
Securityreferences/odoo-16-security-guide.mdAccess rights, record rules, field permissions
Testingreferences/odoo-16-testing-guide.mdWriting tests, mocking, assertions, browser testing
Transactionsreferences/odoo-16-transaction-guide.mdHandling database errors, savepoints, UniqueViolation
Translationreferences/odoo-16-translation-guide.mdAdding translations, localization, i18n
Views & XMLreferences/odoo-16-view-guide.mdWriting XML views, actions, menus, QWeb templates

Coding Conventions

Before writing code, run the odoo-workflow skill if it is installed (trace the real source, Context Brief with file:line, definition of done); install it alongside this pack.

Read references/api-highlights.md before writing code and apply its Quick review checks: the "Wrong:" items are what not to use in Odoo 16.

Apply the relevant convention section in the guide you open. The conventions are advisory: preserve the style of an existing stable addon and keep diffs focused. When guidance conflicts, prefer Odoo 16 runtime/source behavior, then the surrounding addon style, then the convention.

  • Module layout and asset placement: development and controller guides.
  • XML formatting and external IDs: data, view, action, report, and security guides.
  • Python naming, imports, recordsets, transactions, and translations: model,

field, decorator, performance, transaction, and translation guides.

  • JavaScript and CSS/SCSS: development guide.

File Structure

skills/odoo-16.0/
├── SKILL.md                          # This file - master index
└── references/                       # Development guides
    ├── odoo-16-actions-guide.md
    ├── odoo-16-controller-guide.md
    ├── odoo-16-data-guide.md
    ├── odoo-16-decorator-guide.md
    ├── odoo-16-development-guide.md
    ├── odoo-16-field-guide.md
    ├── odoo-16-manifest-guide.md
    ├── odoo-16-migration-guide.md
    ├── odoo-16-mixins-guide.md
    ├── odoo-16-model-guide.md
    ├── odoo-16-owl-guide.md
    ├── odoo-16-performance-guide.md
    ├── odoo-16-reports-guide.md
    ├── odoo-16-security-guide.md
    ├── odoo-16-testing-guide.md
    ├── odoo-16-transaction-guide.md
    ├── odoo-16-translation-guide.md
    └── odoo-16-view-guide.md

Base Code Reference (Odoo 16)

All guides are based on analysis of Odoo 16 source code:

  • odoo/models.py - ORM implementation
  • odoo/fields.py - Field types
  • odoo/api.py - Decorators
  • odoo/http.py - HTTP layer
  • odoo/exceptions.py - Exception types
  • odoo/tools/translate.py - Translation system
  • odoo/addons/base/models/res_lang.py - Language model
  • addons/web/static/src/core/l10n/translation.js - JS translations

External Documentation

タスクに関連する項目

同じリポジトリから

関連する Skills

すべての Skills