Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
5905 Vizualizări

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 ?

Imagine profil
Abandonează
Cel mai bun răspuns
'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
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
dec. 23
32363
0
mar. 15
5101
0
mar. 15
4320
1
mar. 15
10058
0
mar. 15
3782