Basic Server-Side Development
We learned how to declare or extend business models in custom modules in Chapter 4, Application Models. Writing methods for calculated fields and ways to restrict the field values are both addressed in that chapter’s tutorials. This chapter focuses on the fundamentals of server-side programming in Odoo method declarations, record set manipulation, and extending inherited methods. You may use this to create or alter business logins in the Odoo module.
In this chapter, we will cover the following tutorials:
- Specifying model methods and implementing API decorators
- Notifying errors to the user
- Getting a blank recordset for a different model
- Creating new records
- Updating values of recordset records
- Searching for records
- Combining recordsets
- Filtering recordsets
- Traversing recordset relations
- Sorting recordsets
- Extending a model’s established business logic
- Extending
write()
andcreate()
...