Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I Kept this python file as well as csv file in server-folder. But it's not importing products!
conn_string = "dbname= 'toc' user='openerp' password='sigma@123'"
conn = psycopg2.connect(conn_string)
cursor = conn.cursor()
reader = csv.reader(open('prod.csv','rb'))
for row in reader:
statement = "INSERT INTO product_template (name,description) VALUES ('" +row+"','" +(row)+"') RETURNING id"
statement = "INSERT INTO product_product (product_tmpl_id,default_code,active,valuation) VALUES \
(" + str(templateid) + ",'" + row + "',True,'manual_periodic')"
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/3/14, 11:48 AM|
|Seen: 7755 times|
|Last updated: 3/16/15, 8:10 AM|