Hi I have created a custom module in openerp v7. I am using win7 and eclipse IDE(Python) . I have added a button to my module to give it more features. But I dont know how to add a function to that button . I dont have any idea how to declare functions in openerp and call them ?
لقد تم الإبلاغ عن هذا السؤال
1
الرد
7694
أدوات العرض
'my_field': fields.function(_get_myfield, method=True, string='Reference', type='char'),
def _get_myfield(self, cr, uid, ids, field_name, arg, context=None):
#your logic declared here
return resultهل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيل| المنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
|---|---|---|---|---|
|
|
1
ديسمبر 23
|
34049 | ||
|
|
0
مارس 15
|
7016 | ||
|
|
0
مارس 15
|
5785 | ||
|
|
1
مارس 15
|
11867 | ||
|
|
0
مارس 15
|
5210 |