Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4341 Zobrazení

How to define on_change method in odoo v8?

Thank you in advance.

Avatar
Zrušit
Nejlepší odpověď

@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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
pro 19
14628
1
bře 15
5307
0
dub 24
1848
4
lis 23
5936
1
říj 23
2019