Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4355 Prikazi

How to define on_change method in odoo v8?

Thank you in advance.

Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
4
dec. 19
14628
1
mar. 15
5312
0
apr. 24
1853
4
nov. 23
5937
1
okt. 23
2020