Defining records in XML

In an XML data file, each <record> element has two basic attributes, id and model, and contains <field> elements that assign values to each column. As mentioned before, the id attribute corresponds to the record's external identifier and the model attribute to the target model. The <field> elements have a few different ways to assign values. Let's look at them in detail.

Get Odoo 11 Development Essentials - Third 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.