From 6996c2d17d377484583301f044cef898f9310349 Mon Sep 17 00:00:00 2001 From: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com> Date: Fri, 13 Sep 2019 12:25:06 +0530 Subject: [PATCH] fix: Fetch image from user if available (#19030) --- erpnext/hr/doctype/employee/employee.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/employee/employee.json b/erpnext/hr/doctype/employee/employee.json index ee0b2a265a..9291820524 100644 --- a/erpnext/hr/doctype/employee/employee.json +++ b/erpnext/hr/doctype/employee/employee.json @@ -171,6 +171,8 @@ "read_only": 1 }, { + "fetch_from": "user_id.user_image", + "fetch_if_empty": 1, "fieldname": "image", "fieldtype": "Attach Image", "hidden": 1, @@ -780,7 +782,7 @@ "icon": "fa fa-user", "idx": 24, "image_field": "image", - "modified": "2019-09-06 15:54:36.735147", + "modified": "2019-09-12 14:21:12.711280", "modified_by": "Administrator", "module": "HR", "name": "Employee",