تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
9489 أدوات العرض

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
فبراير 16
3615
2
أبريل 22
8436
0
نوفمبر 21
1105
1
يوليو 21
2699
3
نوفمبر 15
27301