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

I have a working python code, this code have 5 variables and run a series of algorithms to present a final result. I need to implement this code in a custom module using 5 fields from account.account and then fill a a new field in the same form with the result.

Is it possible?, can someone take me to the right direcion?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Yes,You can do this.You can define a new function field and 5 normal text or integer field according to your data, in account.account.and in related function you can write your existing code.(if required 5 fields does not exist in account.account).

Otherwise you just have to define 1 function field and put your existing code into function,you can get value of existing fields' value in function using openerp API.

Thanks,
Acespritech Solutions Pvt. Ltd.
www.acespritech.com
Mail: info@acespritech.com
Skype: acespritech
Blogs: http://acespritechblog.wordpress.com

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

Hi, thank u so much!.. i will try to do this. But i dont know exactly how, i make the code work directly in python interpreter i think that wasn't thr right aproach.

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
4298
0
มี.ค. 15
4015
Database for my module not created แก้ไขแล้ว
4
เม.ย. 24
2481
0
เม.ย. 19
3312
2
มี.ค. 15
9726