[DOC] skills: update odoo-javascript skill documentation
This commit is contained in:
parent
158933e96e
commit
162ba0b570
6 changed files with 875 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue