Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计未展示

odoo-17.0奥多 17 0

Agent Skill

odoo-17.0 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,374

周安装

59

GitHub Stars

1

下载量

481
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:odoo-17.0(奥多 17 0)
来源仓库:https://github.com/alessandrorlm/agent-skills
仓库路径:skills/odoo-17.0
安装命令:
npx skills add https://github.com/alessandrorlm/agent-skills --skill odoo-17.0
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alessandrorlm/agent-skills --skill odoo-17.0

简介

odoo-17.0 用于查找、检索和筛选相关信息。

  • 适合根据关键词或任务场景快速定位候选结果。odoo-17.0 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 通过 npx skills add 命令从指定仓库安装,需确认权限范围。
  • 建议结合原始 README 核验具体用法,避免触发未预期的联网操作。
  • 使用前应检查维护状态,确保与当前宿主环境兼容。

SKILL.md

Odoo 17.0 Development Skill

A comprehensive skill set for building production-quality Odoo 17.0 custom modules. Covers the full development lifecycle: module structure, ORM, views, actions, performance, and testing — following official Odoo coding guidelines.

When to Apply

Reference these rules when:

  • Creating or extending a custom Odoo 17.0 module
  • Defining models, fields, or compute methods
  • Writing @api decorators, constraints, or onchange handlers
  • Building XML views, menus, and actions
  • Optimizing queries or processing large recordsets
  • Writing unit tests, integration tests, or UI tours
  • Adding chatter, sequences, ratings, or portal access to a model

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Module ManifestHIGHmanifest-
2ORM ModelsHIGHmodels-
3ORM FieldsHIGHfields-
4API DecoratorsHIGHdecorators-
5Recordset & DomainsMEDIUMrecordsets-
6ActionsMEDIUMactions-
7PerformanceMEDIUMperformance-
8TestingMEDIUMtesting-
9MixinsLOWmixins-

Quick Reference

1. Module Manifest (HIGH)

  • manifest-required-keys — Every module must have name, version, depends, license, installable
  • manifest-data-order — Security CSV always first in data, menus always last
  • manifest-assets-bundle — Register JS/OWL/SCSS files under assets.web.assets_backend
  • manifest-version-format — Use {odoo}.{major}.{minor}.{patch} e.g. 17.0.1.0.0
  • manifest-dependencies — Missing or wrong depends prevents module installation

2. ORM Models (HIGH)

  • models-class-order — Follow canonical attribute → field → constraint → compute → CRUD → action → helper order
  • models-type-selection — Use Model for persistence, TransientModel for wizards, AbstractModel for mixins
  • models-inherit-modes — Know the 4 _inherit modes: extend, copy, compose, delegate
  • models-sql-constraints — Prefer _sql_constraints over Python for uniqueness checks
  • models-required-attributes_name and _description are required on every new model

3. ORM Fields (HIGH)

  • fields-monetary-currencyMonetary fields always require a paired currency_field
  • fields-many2one-index — Always set index=True on Many2one fields used in searches
  • fields-store-decision — Use store=True only when field needs to be searched or sorted
  • fields-m2m-commands — Use ORM write commands (0,0,v) (4,id) (6,0,ids) for relational writes
  • fields-selection-add — When extending a Selection, always define ondelete for new keys

4. API Decorators (HIGH)

  • decorators-depends-completeness — List ALL fields that affect the computed result
  • decorators-depends-assign-all-branches — Always assign computed field in every code path
  • decorators-constrains-exception@api.constrains must raise ValidationError, never UserError
  • decorators-constrains-loop — Always loop for rec in self inside @api.constrains
  • decorators-onchange-not-enforced@api.onchange does not run on programmatic create/write
  • decorators-onchange-newidself.id inside @api.onchange is a NewId, not an integer
  • decorators-create-multi — Always use @api.model_create_multi for create() overrides in 17.0
  • decorators-depends-context-no-store — Fields with @api.depends_context cannot be store=True

5. Recordset & Domains (MEDIUM)

  • recordsets-search-count — Use search_count() instead of len(search()) for counting
  • recordsets-batch-write — Call write() on the whole recordset, never inside a loop
  • recordsets-batch-create — Pass a list to create([...]) instead of calling it in a loop
  • recordsets-domain-operators| and & are prefix operators applying to the next two conditions
  • recordsets-sudo-comment — Always add a comment explaining why sudo() is used
  • recordsets-raw-sql-params — Never format SQL strings; always use %s parameterized queries

6. Actions (MEDIUM)

  • actions-window-menu — Always bind leaf <menuitem> to an ir.actions.act_window record
  • actions-data-order — Declare actions in view XML, menus in a separate menus.xml loaded last
  • actions-python-return — Return action dicts from Python methods to open views or wizards
  • actions-cron-method — Cron methods must be decorated with @api.model and handle their own errors
  • actions-server-binding — Use binding_model_id to add server actions to the Action dropdown

7. Performance (MEDIUM)

  • performance-prefetch — Rely on ORM prefetch; use mapped() to extract cross-record field values
  • performance-no-loop-write — Never call write() or create() inside a for loop
  • performance-index-searched-fields — Add index=True on fields used in search() domains or ORDER BY
  • performance-read-group — Use read_group() for aggregations instead of loading full recordsets
  • performance-invalidate-after-sql — Call invalidate_model() after any raw SQL write

8. Testing (MEDIUM)

  • testing-setup-class — Use setUpClass for shared fixtures; setUp only when full isolation is needed
  • testing-post-install-tag — Tag tests with @tagged('post_install', '-at_install')
  • testing-constrains-coverage — Every @api.constrains method must have a test that triggers it
  • testing-wizard-pattern — Test wizards by creating them with context, then calling the action method
  • testing-tour-js — UI tours must be registered in the web_tour.tours registry and tested via HttpCase

9. Mixins (LOW)

  • mixins-mail-thread — Add _inherit = ['mail.thread', 'mail.activity.mixin'] for chatter + activities
  • mixins-tracking — Use tracking=True on fields to log changes in the chatter automatically
  • mixins-sequence — Use ir.sequence + next_by_code() in field default= for auto-numbering
  • mixins-portal — Implement _compute_access_url when using portal.mixin
  • mixins-message-post — Use message_post() for programmatic chatter messages

How to Use

Read individual skill files for detailed explanations, correct and incorrect code examples, and gotchas:

odoo-manifest.md
odoo-orm-models.md
odoo-orm-fields.md
odoo-orm-decorators.md
odoo-orm-recordsets.md
odoo-actions.md
odoo-performance.md
odoo-testing.md
odoo-mixins.md

Each file contains:

  • Why it matters in Odoo 17.0
  • Incorrect code examples with explanation (# ❌ WRONG)
  • Correct code examples with explanation (# ✅ CORRECT)
  • Decision trees and edge cases

Full Compiled Document

For the complete guide with all rules, patterns, and examples expanded, including global coding guidelines and skill routing table: AGENTS.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.6%
按下载量换算176

Claude

31.75%
按下载量换算153

Cursor

18.55%
按下载量换算89

Gemini CLI

10.85%
按下载量换算52

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills