Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3569 Zobrazení

For Odoo 7, I am writing a custom module to configure Odoo and import data. Most of the data is being imported from CSV files.

Are there any resources describing the optimal order in which to import data from CSV files?

For example, res.groups must be imported after res.users, or else the imported users will not exist to be added to the imported groups.

Current work-in-progress:

printing.printer.csv # No dependencies.
product.category.csv # No dependencies.
roduct.pricelist.csv # No dependencies.
res.country.state.csv # No dependencies.
res.currency.csv # No dependencies.
res.currency.rate.csv # No dependencies.
res.partner.category.csv # No dependencies.
res.users.csv # No dependencies.
ir.actions.report.xml.csv # Depends on printing.printer.csv

product.price.type.csv # Depends on res.currency.csv
product.pricelist.version.csv # Depends on product.pricelist.csv
res.bank.csv # Depends on res.country.state.csv
res.groups.csv # Depends on res.users.csv
res.partner.csv # Depends on res.country.state.csv and res.partner.category.csv
ir.model.access.csv # Depends on res.groups.csv
product.pricelist.item.csv # Depends on product.price.type.csv and product.pricelist.version.csv.
res.partner.bank.csv # Depends on res.bank.csv
res.company.csv # Depends on res.partner.bank.csv

Avatar
Zrušit