Chapter 6: Managing Module Data

In this chapter, we'll look at how add-on modules can provide data at installation time. This is useful for us when providing default values, 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 the Load demonstration data checkbox checked.

In this chapter, we will cover the following recipes:

  • Using external IDs and namespaces
  • Loading data using XML files
  • Using the noupdate and forcecreate flags
  • Loading data using CSV files
  • Add-on updates and data migration
  • Deleting records from XML files
  • Invoking functions from XML files

Technical requirements

The technical requirements for this chapter include ...

Get Odoo 14 Development Cookbook - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.