Skip to Content
Menú
This question has been flagged
1 Respondre
4350 Vistes

How to define on_change method in odoo v8?

Thank you in advance.

Avatar
Descartar
Best Answer

@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
Descartar
Related Posts Respostes Vistes Activitat
4
de des. 19
14628
1
de març 15
5312
0
d’abr. 24
1852
4
de nov. 23
5936
1
d’oct. 23
2019