Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4957 Visualizzazioni

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?

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
set 20
3187
0
apr 16
3424
3
mar 16
14339
1
mar 15
12715
1
apr 23
5396