diff --git a/erpnext/website/doctype/web_page/web_page.py b/erpnext/website/doctype/web_page/web_page.py index a56f7e451ed..b03e42495a5 100644 --- a/erpnext/website/doctype/web_page/web_page.py +++ b/erpnext/website/doctype/web_page/web_page.py @@ -33,7 +33,7 @@ class DocType: import os # we need the name for the templates - if not self.doc.name: + if self.doc.name.startswith('New Web Page'): self.autoname() if self.doc.page_name: