With Odoo, the RPC API is not limited to CRUD operations; you can also invoke business methods. In this recipe, we will call the make_available method to change the book's state.
We will create the Python program to call make_available on the library.book model. Make sure you have installed the my_library module and the server is running on http://localhost:8069.
Perform the following steps to create, write, and update a book's information through RPC:
- Add the books_method.py file. You can place this...