chore: do not reset homepage through hooks

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
This commit is contained in:
Chinmay D. Pai 2020-07-23 12:05:55 +05:30
parent 33bf0574a3
commit 3e503e4404
No known key found for this signature in database
GPG Key ID: 75507BE256F40CED

View File

@ -40,5 +40,3 @@ def home_page_is_products(doc, method):
home_page_is_products = cint(frappe.db.get_single_value('Products Settings', 'home_page_is_products')) home_page_is_products = cint(frappe.db.get_single_value('Products Settings', 'home_page_is_products'))
if home_page_is_products: if home_page_is_products:
doc.home_page = 'products' doc.home_page = 'products'
elif doc.home_page == "products":
doc.home_page = 'home'