[employee] [fix] on user id, set Employee role to profile

This commit is contained in:
Anand Doshi 2013-05-14 17:11:27 +05:30
parent 220ff30878
commit 6e3706d733

View File

@ -80,7 +80,7 @@ class DocType:
if not "Employee" in webnotes.conn.sql_list("""select role from tabUserRole
where parent=%s""", self.doc.user_id):
from webnotes.profile import add_role
add_role(self.doc.user_id, "HR User")
add_role(self.doc.user_id, "Employee")
profile_wrapper = webnotes.bean("Profile", self.doc.user_id)