I have application made by PHP and I want TO make Control panel for this application in openerp How Can I made it ,
Please Help me for this Issue I will Thank full for your helping me .
If you need sample code for connecting Mysql Database than here you go!
@Need to install mysql library in your system. Here you will find how to setup mysql php in your sever. Click Here
# Mysql Connection #
db = MySQLdb.connect(host="server_ip", port=3306, user="root", passwd="root", db="database_name")
cursor = db.cursor()
cursor.execute("write your query here")
data = cursor.fetchall()
print "Data :::",data
Now Manupulate this database wherever you want in your odoo system.
These is sample code to connect with your mysql database, You can use this connect with your mysql database from odoo and you can trigger your operation to mysql.
Now in odoo create some menu and action which trigger this script and allow you to connect with your mysql database.
Hope this will help.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/20/15, 2:04 AM|
|Seen: 1319 times|
|Last updated: 4/20/15, 3:10 AM|