Skip to Content
Menu
This question has been flagged
1 Reply
4415 Views

How to define on_change method in odoo v8?

Thank you in advance.

Avatar
Discard
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
Discard
Related Posts Replies Views Activity
4
Dec 19
14683
1
Mar 15
5366
0
Apr 24
1928
4
Nov 23
6030
1
Oct 23
2066