Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4375 Widoki

How to define on_change method in odoo v8?

Thank you in advance.

Awatar
Odrzuć
Najlepsza odpowiedź

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

 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
gru 19
14661
1
mar 15
5327
0
kwi 24
1871
4
lis 23
5979
1
paź 23
2030