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

Hi,

I was planning to integrate OpenERP with control systems (SCADA) and to do that I need scripts to be executed from the web client by clicking a button. The script will run on the OpenERP server and not on the computer where the web client was accessed.

Furthermore, the script is saved on a text field on a separate object. I need the button to call the script saved on the field per selected record item and execute in on the server.

The scripts job was to execute commands for the interfaced machine.

아바타
취소
베스트 답변

Maybe look this : http://docs.python.org/2/library/subprocess.html

You can call external shell commands from python code

아바타
취소
작성자

Thanks for the link. However I still don't know how to call a python action script from a text field by using a button in the web client. Can you give me some sample of the code?

관련 게시물 답글 화면 활동
0
2월 16
3586
2
4월 22
8415
0
11월 21
1080
1
7월 21
2686
3
11월 15
27276