Skip to Content
Odoo Development Cookbook
book

Odoo Development Cookbook

by Holger Brunn, Alexandre Fayolle, Daniel Reis
April 2016
Beginner to intermediate content levelBeginner to intermediate
400 pages
9h 16m
English
Packt Publishing
Content preview from Odoo Development Cookbook

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Odoo Development Cookbook - Fifth Edition

Odoo Development Cookbook - Fifth Edition

Husen Daudi, Jay Vora, Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
Odoo 14 Development Cookbook - Fourth Edition

Odoo 14 Development Cookbook - Fourth Edition

Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
Odoo 12 Development Cookbook - Third Edition

Odoo 12 Development Cookbook - Third Edition

Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis

Publisher Resources

ISBN: 9781785883644Supplemental Content