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 GitHub
parent 95b3b9c8f5
commit 05321d7f4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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