Member-only story
3# Models and Basic Fields in Odoo
Models and Basic Fields in Odoo
If you encounter any difficulties, feel free to watch this tutorial or reach out to me directly for support!
At the end of the previous chapter, we were able to create an Odoo module. However, at this point, it is still an empty shell that doesn’t allow us to store any data. In our real estate module, we want to store information related to properties (name, description, price, living area, etc.) in a database. The Odoo framework provides tools to facilitate these database interactions.
Before moving forward in this exercise, make sure the estate module is installed. It should appear as ‘Installed’ in the Apps list.
Warning: Avoid Mutable Global Variables
A single Odoo instance can run several databases in parallel within the same Python process. Different modules might be installed on each of these databases, so we cannot rely on global variables that might be updated depending on installed modules.