Profile -> User

This commit is contained in:
Pratik Vyas 2014-03-13 03:09:15 +05:30
parent 5c81f9c44e
commit 65e8676f8b

View File

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