YUNOVA · Odoo ERP
Module 9: Advanced Odoo development
Odoo computed fields and onchange
Key points
- A computed field gets its value from a compute method.
- @api.depends lists the fields that trigger recomputation.
- @api.onchange updates form values as the user edits.
Odoo record rules and access rights CSV
Key points
- ir.model.access.csv gives groups create, read, write and delete rights.
- Record rules limit which records a group can see.
- Rules use domain filters, such as records of the user's company.
Odoo controllers and REST endpoints
Key points
- Controllers handle web requests with @http.route.
- Routes can return HTML pages or JSON.
- The auth parameter sets public or logged-in access.
Odoo automated and scheduled actions
Key points
- Automated actions run when records are created, updated or match a rule.
- Scheduled actions run Python code on a timer.
- Both are set up in Settings under Technical.