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

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.

아바타
취소