Importing csv data into odoo/postgresql from command line -


i using odoo on cloud instance, trying import csv file command line, when tried import psql "crm.lead" table imported data show in odoo application.

      copy res_partner(name, website,email,phone)       '/home/ubuntu/sample/data.csv'       delimiter ','       csv header;       templ=# select count(*) res_partner;      count       -------      25647     (1 row) 

but in customers(odoo) can't find data. tried python script other sources

(http://www.firstclasscomputerconsulting.com/openerp/openerp70videos/tabid/145/articletype/articleview/articleid/3/import-data-into-openerp-7-using-direct-postgres-method.aspx)

but nothing works in case. need help.

copy table_name '/path/to/csv/csv_file.csv' delimiter ',' csv; 

this query can directly execute on postgresql can execute python code.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -