Update erpnext/regional/saudi_arabia/utils.py

Co-authored-by: Saqib <nextchamp.saqib@gmail.com>
This commit is contained in:
Ahmad
2021-09-17 01:28:52 +05:00
committed by Deepesh Garg
parent f9770b69b2
commit 0313b44f1f

View File

@@ -46,7 +46,10 @@ def create_qr_code(doc, method):
"doctype": "File",
"file_name": filename,
"is_private": 0,
"content": qr_image.getvalue()
"content": qr_image.getvalue(),
"attached_to_doctype": doc.get("doctype"),
"attached_to_name": doc.get("name"),
"attached_to_field": "qr_code"
})
_file.save()