@Atheetha check this Understanding differences between frm.call() and frappe.call() you can use frm.call