naming fix in web page, list style
diff --git a/erpnext/website/doctype/web_page/web_page.py b/erpnext/website/doctype/web_page/web_page.py
index e262bfe..0a1a60e 100644
--- a/erpnext/website/doctype/web_page/web_page.py
+++ b/erpnext/website/doctype/web_page/web_page.py
@@ -10,8 +10,11 @@
self.doc.name = website.utils.page_name(self.doc.title)
def validate(self):
- """make page for this product"""
- p = website.utils.add_page(self.doc.title)
+ """make page for this product"""
+ if not self.doc.name:
+ self.doc.name = website.utils.page_name(self.doc.title)
+
+ p = website.utils.add_page(self.doc.name)
from jinja2 import Template
from webnotes.utils import global_date_format
diff --git a/version.num b/version.num
index e41567f..1380537 100644
--- a/version.num
+++ b/version.num
@@ -1 +1 @@
-384
\ No newline at end of file
+385
\ No newline at end of file