fix: attachments should be an empty list by default (#36757)

fix: attachments should be an empty list by default
This commit is contained in:
Raffael Meyer
2023-08-22 10:05:12 +02:00
committed by GitHub
parent 8f04945cef
commit 9d29ec8eac

View File

@@ -205,7 +205,7 @@ class RequestforQuotation(BuyingController):
if preview:
return {"message": message, "subject": subject}
attachments = None
attachments = []
if self.send_attached_files:
attachments = self.get_attachments()