O'Reilly logo

Odoo Development Cookbook by Daniel Reis, Alexandre Fayolle, Holger Brunn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Module Data

In this chapter, we will cover the following topics:

  • Using external IDs and namespaces
  • Loading data using XML files
  • Using the noupdate and forcecreate flags
  • Loading data using CSV files
  • Loading data using YAML files
  • Addon updates and data migration

In order not to have to repeat a lot of code, we'll make use of the models defined in Chapter 4, Application Models. So in order to follow the examples, grab this chapter's code.

Introduction

In this chapter, we'll look at how addons can provide data at installation time. This is useful for providing default values and adding metadata such as view descriptions, menus, or actions. Another important usage is providing demonstration data, which is loaded when the database is created with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required