Writing a Notes desktop application
Let's do something interesting with the RPC API. Odoo provides a simple app for notes. What if users could manage their personal notes directly from their computer's desktop? Let's write a simple Python application to do just that, as shown in the following screenshot:
For clarity, we will split it into two files: one dealing with interactions with the server backend, note_api.py
, and another with the graphical user interface, note_gui.py
.
Communication layer with Odoo
We will create a class to set up the connection and store its information. It should expose two methods: get()
to retrieve task data and set()
Get Odoo 10 Development Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.