From 65e8676f8b2494feae02c41f412507181e34fcb4 Mon Sep 17 00:00:00 2001 From: Pratik Vyas Date: Thu, 13 Mar 2014 03:09:15 +0530 Subject: [PATCH] Profile -> User --- erpnext/hr/doctype/employee/employee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/hr/doctype/employee/employee.py b/erpnext/hr/doctype/employee/employee.py index 232f05a2f2..ad943d391d 100644 --- a/erpnext/hr/doctype/employee/employee.py +++ b/erpnext/hr/doctype/employee/employee.py @@ -39,7 +39,7 @@ class DocType(DocListController): self.validate_duplicate_user_id() def on_update(self): - if self.doc.user_id and frappe.db.get_value("Profile", self.doc.user_id, 'docstatus') == 0: + if self.doc.user_id and frappe.db.get_value("User", self.doc.user_id, 'docstatus') == 0: self.restrict_user() self.update_user_default() self.update_user()