Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4637 Vizualizări

How to define on_change method in odoo v8?

Thank you in advance.

Imagine profil
Abandonează
Cel mai bun răspuns

@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.

 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
4
dec. 19
14890
1
mar. 15
5587
0
apr. 24
2236
4
nov. 23
6441
1
oct. 23
2442