[fix] homepage patch

This commit is contained in:
Rushabh Mehta 2016-07-22 21:00:12 +05:30
parent 29517d0b8c
commit e7399dff2d
2 changed files with 12 additions and 2 deletions

View File

@ -3,11 +3,13 @@
"allow_import": 1, "allow_import": 1,
"allow_rename": 1, "allow_rename": 1,
"autoname": "field:employee_type_name", "autoname": "field:employee_type_name",
"beta": 0,
"creation": "2013-01-10 16:34:14", "creation": "2013-01-10 16:34:14",
"custom": 0, "custom": 0,
"docstatus": 0, "docstatus": 0,
"doctype": "DocType", "doctype": "DocType",
"document_type": "Setup", "document_type": "Setup",
"editable_grid": 0,
"fields": [ "fields": [
{ {
"allow_on_submit": 0, "allow_on_submit": 0,
@ -17,6 +19,7 @@
"fieldtype": "Data", "fieldtype": "Data",
"hidden": 0, "hidden": 0,
"ignore_user_permissions": 0, "ignore_user_permissions": 0,
"ignore_xss_filter": 0,
"in_filter": 0, "in_filter": 0,
"in_list_view": 1, "in_list_view": 1,
"label": "Employment Type", "label": "Employment Type",
@ -26,6 +29,7 @@
"oldfieldtype": "Data", "oldfieldtype": "Data",
"permlevel": 0, "permlevel": 0,
"print_hide": 0, "print_hide": 0,
"print_hide_if_no_value": 0,
"read_only": 0, "read_only": 0,
"report_hide": 0, "report_hide": 0,
"reqd": 1, "reqd": 1,
@ -38,13 +42,14 @@
"hide_toolbar": 0, "hide_toolbar": 0,
"icon": "icon-flag", "icon": "icon-flag",
"idx": 1, "idx": 1,
"image_view": 0,
"in_create": 0, "in_create": 0,
"in_dialog": 0, "in_dialog": 0,
"is_submittable": 0, "is_submittable": 0,
"issingle": 0, "issingle": 0,
"istable": 0, "istable": 0,
"max_attachments": 0, "max_attachments": 0,
"modified": "2015-11-16 06:29:46.733350", "modified": "2016-07-22 05:34:43.238512",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "HR", "module": "HR",
"name": "Employment Type", "name": "Employment Type",
@ -91,6 +96,9 @@
"write": 1 "write": 1
} }
], ],
"quick_entry": 1,
"read_only": 0, "read_only": 0,
"read_only_onload": 0 "read_only_onload": 0,
"sort_order": "DESC",
"track_seen": 0
} }

View File

@ -5,6 +5,8 @@ def execute():
frappe.reload_doc('portal', 'doctype', 'homepage_featured_product') frappe.reload_doc('portal', 'doctype', 'homepage_featured_product')
frappe.reload_doc('portal', 'doctype', 'homepage') frappe.reload_doc('portal', 'doctype', 'homepage')
frappe.reload_doc('portal', 'doctype', 'products_settings') frappe.reload_doc('portal', 'doctype', 'products_settings')
frappe.reload_doctype('Item')
frappe.reload_doctype('Item Group')
website_settings = frappe.get_doc('Website Settings', 'Website Settings') website_settings = frappe.get_doc('Website Settings', 'Website Settings')
if frappe.db.exists('Web Page', website_settings.home_page): if frappe.db.exists('Web Page', website_settings.home_page):