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

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