コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5734 ビュー

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 ?

アバター
破棄
最善の回答
'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
12月 23
32190
0
3月 15
4911
0
3月 15
4151
1
3月 15
9846
0
3月 15
3616