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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()