İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4633 Görünümler

How to define on_change method in odoo v8?

Thank you in advance.

Avatar
Vazgeç
En İyi Yanıt

@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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
4
Ara 19
14890
1
Mar 15
5585
0
Nis 24
2232
4
Kas 23
6427
1
Eki 23
2441