@api.onchange in Odoo — a practical guide to Odoo @api.onchange with clear examples you can reuse in real projects.
Odoo Tutorial Series (64/112). Prefer one article? Read the complete Odoo tutorial.
Short description
Return warnings/domains dicts for richer UX.
@api.onchange tip
UI only — not a security gate
Can return {'warning': {...}, 'domain': {...}}
Keep logic light