Can I send supplier details on submit?

Hi everyone,

After creating the RFQ can I send suppliers details to suppliers on click of submit button in request for quotation.

Is it possible?

Please help on this .

Thanks in advance.

What do you mean by “send”? Are you talking about emailing it?

Yes exactly, Instead of clicking on Send Supplier Details button from RFQ , I want it to send, on_submit event.

@Akshay_Patil You can trigger the function from on_submit, which is currently being triggered on pressing the button.
Just add this,

	on_submit: function(frm, cdt, cdn){
		frappe.call({
			method: 'erpnext.buying.doctype.request_for_quotation.request_for_quotation.send_supplier_emails',
			freeze: true,
			args: {
				rfq_name: frm.doc.name
			},
			callback: function(r){
				frm.reload_doc();
			}
		});
	}

You can also remove the button, if you want.

You might want to look at Email Alert https://erpnext.org/docs/user/manual/en/setting-up/email/email-alerts