mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
Merge branch 'master' into edge
This commit is contained in:
@@ -80,7 +80,7 @@ class DocType:
|
|||||||
if not "Employee" in webnotes.conn.sql_list("""select role from tabUserRole
|
if not "Employee" in webnotes.conn.sql_list("""select role from tabUserRole
|
||||||
where parent=%s""", self.doc.user_id):
|
where parent=%s""", self.doc.user_id):
|
||||||
from webnotes.profile import add_role
|
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)
|
profile_wrapper = webnotes.bean("Profile", self.doc.user_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user