Most addon modules have different types of data. Some data simply needs to exist for the module to work properly, other data shouldn't even be changed by the user, while most data is meant to be changed as per the user's pleasure and is only provided as a convenience. This recipe will detail how to address the different types. First, we'll write a field in an already existing record, and then we'll create a record that is supposed to be recreated during a module update.
Using the noupdate and forcecreate flags
How to do it...
We can enforce different behaviors from Odoo when loading data by setting certain attributes on the enclosing <odoo> element or the <record> element itself:
- Add a publisher...