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
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
Post a Comment