Loading data using CSV files
While you can do everything you need to with XML files, this format is not the most convenient when you need to provide larger amounts of data, especially given that many people are more comfortable preprocessing data in Calc or other spreadsheet software. Another advantage of the CSV format is that it is what you get when you use the standard export
function. In this tutorial, we’ll take a look at importing table-like data.
How to do it...
Traditionally, access-control lists (ACLs) in Odoo are used to manage record and operation access rights. ACLs specify who can execute particular actions (such as read, write, create, and delete) on specified entries using predefined rules. ACLs are commonly defined in Odoo modules via XML files. For more details on ACLs, check out the ACLs tutorial in Chapter 10, Security Access
Add security/ir.model.access.csv
to your data files:
'data': [ ... ...