Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4378 Visualizzazioni

How to define on_change method in odoo v8?

Thank you in advance.

Avatar
Abbandona
Risposta migliore

@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
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
dic 19
14669
1
mar 15
5331
0
apr 24
1877
4
nov 23
5992
1
ott 23
2038