[refactor] stock entry, minor ux

This commit is contained in:
Rushabh Mehta
2015-02-17 19:55:17 +05:30
parent 0fb678e7cf
commit df9e80c87a
7 changed files with 284 additions and 275 deletions

View File

@@ -435,7 +435,7 @@ def create_territories():
}).insert()
def login_as_first_user(args):
if args.get("email"):
if args.get("email") and hasattr(frappe.local, "login_manager"):
frappe.local.login_manager.user = args.get("email")
frappe.local.login_manager.post_login()