fix: use file_url to save file and not file name

This commit is contained in:
Shivam Mishra 2020-12-23 15:18:41 +05:30
parent 6afa83f2c7
commit 1ab4f09ee9

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