fixes in test runner and add role for profile

This commit is contained in:
Anand Doshi
2013-02-13 19:57:58 +05:30
parent 5070224079
commit 798c6b4fdb
3 changed files with 5 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ class DocType:
# add employee role if missing
if not "Employee" in webnotes.conn.sql_list("""select role from tabUserRole
where parent=%s""", self.doc.user_id):
from core.doctype.profile.profile import add_role
from webnotes.profile import add_role
add_role(self.doc.user_id, "HR User")
profile_wrapper = webnotes.model_wrapper("Profile", self.doc.user_id)