跳至内容
菜单
此问题已终结
1 回复
4357 查看

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
14634
1
3月 15
5314
0
4月 24
1853
4
11月 23
5942
1
10月 23
2020