Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
Odoo

Python Decorators in Odoo

Use Odoo API decorators to declare model method behavior.

Python Decorators in Odoo — a practical guide to Odoo Python decorators with clear examples you can reuse in real projects.

Odoo Tutorial Series (61/112). Prefer one article? Read the complete Odoo tutorial.

Short description

Common ones: model, depends, onchange, constrains, returns.

Decorators list

@api.model
@api.depends
@api.onchange
@api.constrains
@api.returns (less common day-to-day)

Leave a reply

Your email address will not be published. Required fields are marked *