Member-only story

3# Models and Basic Fields in Odoo

Muhammad Abdullah Arif
4 min readJun 5, 2024

--

Models and Basic Fields in Odoo

How to Create and Customize Fields in Odoo | Step-by-Step Guide (youtube.com)

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.

Object-Relational Mapping (ORM)

--

--

Muhammad Abdullah Arif
Muhammad Abdullah Arif

Written by Muhammad Abdullah Arif

Python developer. The facts are the facts but opinions are my own.

No responses yet