Skip to Content
Menu
This question has been flagged
1 Atsakyti
4354 Rodiniai

How to define on_change method in odoo v8?

Thank you in advance.

Portretas
Atmesti
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.

 

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
4
gruod. 19
14628
1
kov. 15
5312
0
bal. 24
1852
4
lapkr. 23
5937
1
spal. 23
2020