It looks like you are trying to load several models from one csv file. This is 
supposed to be possible but I have never managed it.

I suggest you have a separate csv file for each model. Each file should have a 
first column called 'id' which you can fill with a sequence like 'modelname_xx' 
where xx is an integer.

Then, in a second model's csv file, you refer to a record from the first 
model's csv by having a column called 'first_model:id' with data like 
'modelname_xx'.

For example:

freelance.csv
id,title1,name,address:id
'freelance_01','Mr.','Bill Sykes','address_01'

address.csv
id,freelance_id:id,city
'address_01','freelance_01','Old London Town'

It's a good idea to start with all this data in one spreadsheet so you can 
easily create the sequences and match up the ids before splitting into separate 
csv files.

I'm pre-supposing you will import this data via the server (rather than the 
interface) which is definitely the way to go if you are building a module.

Also, you should use the database column names not the display names as you are 
currently.




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=60516#60516

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to