Odoo Help


load csv files at module instalation in OpenERP 7.0

on 3/6/13, 3:05 PM 1,729 views

I create a simple module and I create a CSV file to modify res.currency records this is the content of my csv file


I try to set active=false to all currencies except some, and do some other changes

I also add the file in __openerp__.py file 'update_xml': ['data/res.currency.csv',...],

but when I install the module, never loads the res.currency.csv file

I did this changes to test.
- to my csv file I add " (double quotes) to all values and headers
- I change 'update_xml' for 'data' on my __openerp__.py file
- In OpenERP -> Settings -> Configuration -> General Settings -> check Allow users to import data from CSV files
none of the changes worked :(

in OpenERP 6.1 this works fine, but in OpenERP 7.0 not works. am I doing something wrong?? or is it a problem of the OpenERP 7.0 version?

thanks in advance. naitsir

Did you make sure to restart the server and press the upgrade button each time you made a change?

on 3/6/13, 4:37 PM

yes, also when I try a new install

on 3/6/13, 4:57 PM

I will try to create another module and add one by one my csv and xml files

on 3/6/13, 5:30 PM

I think I identified the problem, there is a problem with my other xml and csv files, I will load this file one by one to see where is the problem.

another question related to update data from xml or csv files

when I install or update a module csv file always change the values in the DB in xml file we can add noupdate="0" attribute in 'data' tag to always update the data in the DB. is there a way to only modify the data only when a module is installed?? (not when a module is updated)

on 3/6/13, 6:05 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/6/13, 3:05 PM
Seen: 1729 times
Last updated: 3/16/15, 8:10 AM