From 49e65c9e43f5c047e26e33b5d4ca69dadfac0641 Mon Sep 17 00:00:00 2001 From: pateljannat Date: Mon, 15 Mar 2021 10:43:06 +0530 Subject: [PATCH] feat: email as name field for community member --- .../community/doctype/community_member/community_member.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/community/community/doctype/community_member/community_member.py b/community/community/doctype/community_member/community_member.py index f3fd9541..49bfa49a 100644 --- a/community/community/doctype/community_member/community_member.py +++ b/community/community/doctype/community_member/community_member.py @@ -25,9 +25,7 @@ class CommunityMember(WebsiteGenerator): if not re.match("^[A-Za-z0-9_]*$", self.user_name): frappe.throw(_("Username can only contain alphabets, numbers and underscore.")) self.user_name = self.user_name.lower() - - def autoname(self): - self.name = self.user_name + def create_member_from_user(doc, method): member = frappe.get_doc({