Hello Every One,
I have write js script for add new row in child table but i need to add new row in child table using python . please help me.
frappe.ui.form.on(“Salary Slip”, “validate”, function(frm) {
deduction_amount = 500;
var row = frappe.model.add_child(cur_frm.doc, “Salary Slip”, “deductions”);
row.salary_component = “Attendance Violation”;
row.amount = Math.round(deduction_amount);
refresh_field(“deductions”);
});