コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4344 ビュー

How to define on_change method in odoo v8?

Thank you in advance.

アバター
破棄
最善の回答

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

 

アバター
破棄
関連投稿 返信 ビュー 活動
4
12月 19
14628
1
3月 15
5307
0
4月 24
1850
4
11月 23
5936
1
10月 23
2019