frontend-js
Installation
SKILL.md
Odoo Frontend JavaScript Patterns
Critical Rules
- Website themes: Use
publicWidgetframework ONLY — NOT Owl or vanilla JS - JS modules: Start every file with
/** @odoo-module **/ - No inline JS/CSS: Always separate files in
static/src/js/andstatic/src/scss/ - Bootstrap: v5.1.3 for Odoo 16+ (never Tailwind)
- Translations: Use
_t()at DEFINITION TIME for static JS labels
Version Detection
| Odoo | Bootstrap | Owl | JavaScript |
|---|---|---|---|
| 14 | 4.x | — | ES6+ |
| 15 | 4.x | v1 | ES6+ |
| 16 | 5.1.3 | v1 | ES2020+ |
| 17 | 5.1.3 | v2 | ES2020+ |
| 18-19 | 5.1.3 | v2 | ES2020+ |
Related skills