fix: RFQ emails not sent with pdf attachment (#33604)
This commit is contained in:
parent
0f0bc9a462
commit
e0f5ecdad6
@ -216,6 +216,7 @@ class RequestforQuotation(BuyingController):
|
|||||||
recipients=data.email_id,
|
recipients=data.email_id,
|
||||||
sender=sender,
|
sender=sender,
|
||||||
attachments=attachments,
|
attachments=attachments,
|
||||||
|
print_format=self.meta.default_print_format or "Standard",
|
||||||
send_email=True,
|
send_email=True,
|
||||||
doctype=self.doctype,
|
doctype=self.doctype,
|
||||||
name=self.name,
|
name=self.name,
|
||||||
@ -224,9 +225,7 @@ class RequestforQuotation(BuyingController):
|
|||||||
frappe.msgprint(_("Email Sent to Supplier {0}").format(data.supplier))
|
frappe.msgprint(_("Email Sent to Supplier {0}").format(data.supplier))
|
||||||
|
|
||||||
def get_attachments(self):
|
def get_attachments(self):
|
||||||
attachments = [d.name for d in get_attachments(self.doctype, self.name)]
|
return [d.name for d in get_attachments(self.doctype, self.name)]
|
||||||
attachments.append(frappe.attach_print(self.doctype, self.name, doc=self))
|
|
||||||
return attachments
|
|
||||||
|
|
||||||
def update_rfq_supplier_status(self, sup_name=None):
|
def update_rfq_supplier_status(self, sup_name=None):
|
||||||
for supplier in self.suppliers:
|
for supplier in self.suppliers:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user