Odoo Help

0

How to integrate MySQL in OpenERP?

By
Mohammed Khamis
on 4/20/15, 2:04 AM 2,264 views

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 .

Thank you

1

Anil R. Kesariya

--Anil R. Kesariya--
5396
| 6 5 8
Rajkot, India
--Anil R. Kesariya--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.


Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66


Anil R. Kesariya
On 4/20/15, 3:06 AM

Hello Mohammed,

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

    import MySQLdb

    # 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.


Regards,

Anil.

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

Question tools

1 follower(s)

Stats

Asked: 4/20/15, 2:04 AM
Seen: 2264 times
Last updated: 4/20/15, 3:10 AM