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 ?
Esta pergunta foi sinalizada
1
Responder
7678
Visualizações
'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 resultEstá gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
1
dez. 23
|
34049 | ||
|
|
0
mar. 15
|
6988 | ||
|
|
0
mar. 15
|
5784 | ||
|
|
1
mar. 15
|
11850 | ||
|
|
0
mar. 15
|
5209 |