Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计通过

odoo-upgrade奥多升级

Agent Skill

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

总安装

5,361

周安装

219

GitHub Stars

51

下载量

1,717
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/ahmed-lakosha/odoo-upgrade-skill --skill odoo-upgrade

简介

odoo-upgrade 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于 Odoo 系统升级相关的信息查询、版本比对和技术方案梳理等研究检索场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法和功能边界。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Odoo Upgrade Assistant v5.0

When to Use

Activate when:

  • Upgrading Odoo modules between versions (14-19)
  • Fixing version compatibility errors
  • Migrating themes or custom modules
  • Resolving RPC service errors in frontend
  • Converting XML views (tree->list, search groups)
  • Updating SCSS variables for Odoo 18/19 themes
  • Fixing portal view XPath inheritance errors
  • Migrating JavaScript from OWL v1 to v2

Upgrade Workflow

  1. Analyze - Read __manifest__.py, identify source version, scan all files
  2. Backup - Create timestamped backup before changes
  3. Pre-check - Run scripts/cli.py precheck <path> --target <version> to identify all issues
  4. Transform - Apply transforms in order: manifest, XML, Python, JS, SCSS
  5. Validate - Run scripts/cli.py validate <path> to check syntax
  6. Test - Install module: python -m odoo -d DB -i MODULE --stop-after-init

XML/View Transformations

Tree to List (Odoo 19)

<!-- Tags -->        <tree> -> <list>,  </tree> -> </list>
<!-- view_mode -->   tree,form -> list,form
<!-- XPath -->       //tree -> //list
<!-- Remove -->      edit="1" attribute

Search Views (Odoo 19)

Remove <group> tags - place filters at root level. Add <separator/> before group_by filters.

Kanban Templates (Odoo 19)

t-name="kanban-box" -> t-name="card". Remove js_class="crm_kanban".

Cron Jobs (Odoo 19)

Remove <field name="numbercall"> - field no longer exists.

Form View Context (Odoo 19)

active_id -> id in context expressions.

Snippet Options (Odoo 19)

Remove templates inheriting website.snippet_options - system redesigned.

Attrs to Inline (Odoo 18/19)

attrs="{'invisible': [('state','=','draft')]}" -> invisible="state == 'draft'"

Python API Migrations

Slug/Unslug (Odoo 18+)

# Old: from odoo.addons.http_routing.models.ir_http import slug
# New: use request.env['ir.http']._slug(value)

URL For (Odoo 19)

# Old: from odoo.addons.http_routing.models.ir_http import url_for
# New: self.env['ir.http']._url_for('/path')

Controller Type (Odoo 19)

type='json' -> type='jsonrpc' in @http.route decorators.

View Mode (Odoo 19)

'view_mode': 'tree' -> 'view_mode': 'list' in Python dicts.

JavaScript/OWL Migrations

RPC Service (Odoo 19)

RPC service is NOT available in frontend/public components. Replace useService("rpc") with a _jsonRpc helper method using the fetch API with CSRF token handling.

OWL Lifecycle Hooks (Odoo 18+)

OWL 1.x (Odoo 14-17)OWL 2.0 (Odoo 18+)
constructor(parent, props)setup()
willStart()onWillStart(callback)
mounted()onMounted(callback)
patched()onPatched(callback)
willUnmount()onWillUnmount(callback)
willUpdateProps()onWillUpdateProps(callback)

Theme SCSS Variables (Odoo 19)

Use $o-theme-* prefixed variables instead of bare Bootstrap names:

  • $headings-font-weight -> $o-theme-headings-font-weight
  • $font-size-base -> $o-theme-font-size-base

Color palettes must include 'menu', 'footer', 'copyright' assignments:

$o-color-palettes: map-merge($o-color-palettes, (
    'my_theme': (
        'o-color-1': #124F81,
        'menu': 1,
        'footer': 4,
        'copyright': 5,
    ),
));

Portal View XPath Migration (Odoo 19)

Sale portal templates restructured with named selectors:

Headers: th[@id='product_qty_header'], th[@id='product_unit_price_header'], th[@id='product_discount_header'], th[@id='taxes_header'], th[@id='subtotal_header']

Body: tr[@name='tr_product'], td[@name='td_product_name'], td[@name='td_product_quantity'], td[@name='td_product_priceunit'], td[@name='td_product_discount'], td[@name='td_product_taxes'], td[@name='td_product_subtotal']

Mail Template Migration (Odoo 19)

Remove env parameter from format helpers:

<!-- Old --> format_datetime(env, object.date_start)
<!-- New --> format_datetime(object.date_start)

XML entity encoding - use numeric references: &copy; -> ©, ` -> , &mdash; -> —`

Bootstrap 4 to 5 Class Migration

Bootstrap 4Bootstrap 5
ml-*/mr-*ms-*/me-*
pl-*/pr-*ps-*/pe-*
text-left/text-righttext-start/text-end
float-left/float-rightfloat-start/float-end
sr-onlyvisually-hidden
badge-primarybg-primary
font-weight-boldfw-bold
no-guttersg-0

Data Migration Scripts

Place migration scripts under module/migrations/VERSION/:

  • pre-migrate.py - Before ORM update (use raw SQL only)
  • post-migrate.py - After ORM update (can use env/ORM)
  • end-migrate.py - After all modules updated (cleanup)

Each must define def migrate(cr, version): and guard with if not version: return.

Common patterns:

PatternPre-MigratePost-Migrate
Field renameALTER TABLE RENAME COLUMNUpdate views
Selection to M2OBackup valuesMap to records
Add required fieldNothingPopulate defaults
Model renameRename table + ir_model_dataUpdate foreign keys

With openupgradelib: rename_fields(), rename_models(), rename_xmlids(), rename_columns(), logged_query().

Common Errors Quick Reference

ErrorCauseFix
Service rpc not availableuseService("rpc") in frontendReplace with _jsonRpc helper
Invalid field numbercallField removedRemove from cron XML
Invalid view definition (search)<group> in searchRemove group tags
Missing card templatekanban-box renamedUse t-name="card"
Cannot import slugImport movedUse compatibility wrapper
website.snippet_options not foundSystem redesignedRemove the template
active_id not foundContext changeReplace with id

Version-Specific Notes

Odoo 14 to 15

Bootstrap 4.x -> 5.x, t-use-call removed, payment provider API changes, left/right -> start/end

Odoo 15 to 16

Bootstrap 5.1.3 standardized, web framework reorg, OWL v1 adoption begins

Odoo 16 to 17

OWL v1 fully adopted, widget system changes, publicWidget API stabilization

Odoo 17 to 18

OWL v1 -> v2 starts, minor XML changes, snippet group system introduced

Odoo 18 to 19

Major frontend overhaul: RPC service removed, snippet system overhauled, kanban-box->card, search banned, tree->list, portal templates restructured, mail template helpers changed, cron numbercall removed

References

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

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

平台分布

Claude Code

28.22%
按下载量换算485

Antigravity

20.67%
按下载量换算355

Gemini CLI

16.47%
按下载量换算283

OpenCode

12.26%
按下载量换算211

Codex

7.86%
按下载量换算135

Cursor

3.41%
按下载量换算59

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills