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 ?
Denna fråga har flaggats
1
Besvara
7697
Vyer
'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 resultNjuter du av diskussionen? Läs inte bara, delta också!
Skapa ett konto idag för att ta del av exklusiva funktioner och engagera dig i vår fantastiska community!
Registrera dig| Relaterade inlägg | Svar | Vyer | Verksamhet | |
|---|---|---|---|---|
|
|
1
dec. 23
|
34050 | ||
|
|
0
mars 15
|
7018 | ||
|
|
0
mars 15
|
5785 | ||
|
|
1
mars 15
|
11872 | ||
|
|
0
mars 15
|
5210 |