Merge pull request #24196 from scmmishra/fix-file-url-employee

fix: use file_url to save file and not file name
This commit is contained in:
rohitwaghchaure
2020-12-25 16:22:15 +05:30
committed by GitHub

View File

@@ -135,7 +135,7 @@ class Employee(NestedSet):
try:
frappe.get_doc({
"doctype": "File",
"file_name": self.image,
"file_url": self.image,
"attached_to_doctype": "User",
"attached_to_name": self.user_id
}).insert()