[employee] [fix] on user id, set Employee role to profile
This commit is contained in:
parent
220ff30878
commit
6e3706d733
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user