Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
4600 Visualizações

How to define on_change method in odoo v8?

Thank you in advance.

Avatar
Cancelar
Melhor resposta

@Prince,

Here you go!

 @api.onchange(<your field name>)
    def _onchange_student(self):
       body of your code

#Note : in odoo v8 you no need to call that method from xml file it will directly call when you do changes in field which you have passed as argument in @api.onchange method. it will call.

Hope this will helps you.

Regards,

Anil.

 

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
4
dez. 19
14851
1
mar. 15
5567
0
abr. 24
2199
4
nov. 23
6392
1
out. 23
2412