Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4640 Vues

How to define on_change method in odoo v8?

Thank you in advance.

Avatar
Ignorer
Meilleure réponse

@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
Ignorer
Publications associées Réponses Vues Activité
4
déc. 19
14891
1
mars 15
5589
0
avr. 24
2236
4
nov. 23
6444
1
oct. 23
2448