تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4553 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
سبتمبر 20
2760
0
أبريل 16
3094
3
مارس 16
13851
1
مارس 15
12299
1
أبريل 23
5021