Odoo is one of the data-driven applications which are used for business management and the vitality to describe the various aspects of company operational data is inevitable.We can begin with the module structure. The main part of module creation is the definition of different records which they will manage. As we all know, Odoo greatly depends on data therefore, it needs to manage menus and views of the user interface, access rights and access rules, different reports, and plain data.
2. INTRODUCTION
❖ Odoo is one of the data-driven applications which are used for business management and
the vitality to describe the various aspects of company operational data is inevitable.
❖ We can begin with the module structure.
❖ The main part of module creation is the definition of different records which they will
manage.
❖ As we all know, Odoo greatly depends on data therefore, it needs to manage menus and
views of the user interface, access rights and access rules, different reports, and plain
data.
3. ❖ We can add data through XML and CSV files. Let's have a look at how we can define
data in Odoo via XML files.
❖ This is the root element of the data files. We can use many operation elements within
the root.
➢ noupdate - Whenever we are adding data we must need to give noupdate = 1,
since the contents of the file should be applied once when we install the module.
4. ❖ Next, we can move on to have a look at what are the core operations in a data file to
create a record.
5. ❖ A record tag in an XML file is used to define or update database records.The below are
some of the attributes of the record tag.
➢ Model: This attribute is used to mention the name of the model which we need to
create/update a record. That means we are going to create a record in this
model.
➢ ID: This indicates the external ID for the record. It will be used in record
modifications in the future.
❖ After adding the record go to your manifest file
9. ❖ And here we will get newly added employee details.
10. For More
Details
Check our company website for related blogs and Odoo book.
What are the data files and the operations in Odoo
platform?
Check our YouTube channel for functional and technical
videos in Odoo.
How to Create Data Files and Load Data in Odoo 15