How to add new row in child table using Python

@maheshlangote

Try frm.doc instead of cur_frm.doc
Any error on console log?If yes please share the screenshots