Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4363 มุมมอง

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.

 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
on_change in xml in odoo แก้ไขแล้ว
4
ธ.ค. 19
14641
1
มี.ค. 15
5320
0
เม.ย. 24
1856
4
พ.ย. 23
5947
1
ต.ค. 23
2022