[DOC] skills: update odoo-javascript skill documentation

This commit is contained in:
GitHub Copilot 2026-08-15 13:00:56 +02:00
parent 158933e96e
commit 162ba0b570
6 changed files with 875 additions and 1 deletions

View file

@ -10,7 +10,7 @@ metadata:
## Style and conventions
- ES6+ (`let`/`const`, arrow functions). Linting with ESLint (`.eslintrc.js` at root).
- Odoo pattern: AMD modules (`odoo.define`).
- **No business logic in JS, only UI and events.** Business logic lives in Python.
- **No business logic in JS (pricing rules, stock/availability decisions, permission checks)** — these belong in Python. JS handles only rendering, DOM events, and calling Python endpoints via `ajax.jsonRpc`.
- Comments to explain hacks or workarounds.
## Key patterns