콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
8513 화면

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

아바타
취소
베스트 답변

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.

아바타
취소
관련 게시물 답글 화면 활동
0
9월 15
6043
0
3월 25
1513
4
4월 24
174374
0
12월 23
2279
5
7월 25
228499