A third format for data import is YAML, which gives you less overhead than XML, but still more control than CSV. Traditionally, it was used for tests rather than for data import, which is why you have more possibilities to call code here.
Loading data using YAML files
How to do it...
Take the following steps to translate the first recipe in this chapter to YAML:
- Add a file called data/demo.yml to your manifest, in the demo section:
'demo': [ 'data/demo.yml', ],
- Add content to this file:
- !record {id: author_af, model: res.partner} name: Alexandre Fayolle - !record {id: author_dr, model: res.partner} name: Daniel Reis - !record {id: author_hb, model...