Field Constraints in Odoo — a practical guide to Odoo field constraints with clear examples you can reuse in real projects.
Odoo Tutorial Series (27/112). Prefer one article? Read the complete Odoo tutorial.
Short description
Combine SQL constraints with Python @api.constrains for business rules.
SQL constraint
_sql_constraints = [
('isbn_uniq', 'unique(isbn)', 'ISBN must be unique!'),
]