Understanding Different Types of Fields in Odoo and Their Attributes
A Comprehensive Guide to Field Types and Attributes in Odoo ERP Customization
3 min readJun 14, 2024
Odoo, an open-source ERP platform, is highly customizable and allows developers to create various fields to suit the specific needs of a business. Fields in Odoo are the basic components used to store data in models. They define the type of data that can be stored and the behavior of this data within the system. In this blog, we will explore the different types of fields available in Odoo and the attributes that can be set for each type.
Types of Fields in Odoo
Odoo offers a variety of field types, each designed to handle specific kinds of data. Below are the primary field types you can use:
1. Basic Fields
- Char: A field for storing short text strings.
- Text: Used for longer text.
- Integer: For integer numbers.
- Float: For floating-point numbers.
- Boolean: A true/false field.
- Date: For dates.
- Datetime: For date and time.
- Binary: For storing binary data like images or files.