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

Hi, I use the module web_one2many_selectable_10, now I want to know if is it possible to implement onchange method to the checkbox in every row on my one2many field?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi peter,
Yes,it is possible to implement onchange method to the checkbox in every row on a one2many field.
Use the following code:

@api.onchange('field_name')
def onchange_field_name(self):
# get the required data in record
for line in record:
line.check_box_field_name = True

Regards

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 20
2903
0
เม.ย. 16
3217
One2many onchange in ODOO แก้ไขแล้ว
3
มี.ค. 16
14026
1
มี.ค. 15
12440
1
เม.ย. 23
5189