Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5232 มุมมอง

Hello Currently I'm trying to develop a new module in OpenERP & I want to export some data to MySQL every time I add new record, for that I used the lib MySQLdb in python to connect to the db.

Could someone helps me please ?

อวตาร
ละทิ้ง

can u give more info ?

ผู้เขียน

Hello Jack, please take a look at this pic ( img15.hostingpics.net/pics/826104slide171024.jpg ), when I add a new device in OpenERP I have to save it in Other table (device) in MySQL (synchronization between databases ) by clicking on the button import to OpenGTS, cuz I want to use an application developed with java in my module

คำตอบที่ดีที่สุด

Hi,

This method is used for connection with mysql:

CONNECTION = MySQLdb.connect(db_host, db_user, passwd, db_name)

อวตาร
ละทิ้ง
ผู้เขียน

yes I know this method, but how I can retrieve record from openerp to pass it as argument in the function charged to save data in MySQL server ??

คำตอบที่ดีที่สุด

Read the code in this module.

อวตาร
ละทิ้ง