[fix] [hot] web form fixtures - removed Contact, added Issues and Addresses
This commit is contained in:
parent
f0e16e68c5
commit
b015f9eca2
@ -1,71 +1,4 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"allow_comments": 0,
|
|
||||||
"allow_delete": 0,
|
|
||||||
"allow_edit": 0,
|
|
||||||
"allow_multiple": 0,
|
|
||||||
"breadcrumbs": null,
|
|
||||||
"doc_type": "Lead",
|
|
||||||
"docstatus": 0,
|
|
||||||
"doctype": "Web Form",
|
|
||||||
"introduction_text": "To contact us sales persons",
|
|
||||||
"is_standard": 0,
|
|
||||||
"login_required": 0,
|
|
||||||
"modified": "2015-01-22 10:43:02.928698",
|
|
||||||
"name": "contact",
|
|
||||||
"page_name": "contact",
|
|
||||||
"published": 1,
|
|
||||||
"success_message": "Thanks for contact us. We will soon get back to you.",
|
|
||||||
"success_url": "/contact",
|
|
||||||
"title": "Contact",
|
|
||||||
"web_form_fields": [
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "lead_name",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Contact Name",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "company_name",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Organization Name",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "email_id",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Email Id",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "website",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Website",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"web_page_link_text": null
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"allow_comments": 1,
|
"allow_comments": 1,
|
||||||
"allow_delete": 1,
|
"allow_delete": 1,
|
||||||
|
@ -1,168 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"allow_comments": 0,
|
|
||||||
"allow_delete": 0,
|
|
||||||
"allow_edit": 1,
|
|
||||||
"allow_multiple": 1,
|
|
||||||
"breadcrumbs": null,
|
|
||||||
"doc_type": "Address",
|
|
||||||
"docstatus": 0,
|
|
||||||
"doctype": "Web Form",
|
|
||||||
"introduction_text": null,
|
|
||||||
"is_standard": 1,
|
|
||||||
"login_required": 1,
|
|
||||||
"modified": "2015-11-23 08:21:53.924318",
|
|
||||||
"name": "addresses",
|
|
||||||
"page_name": "addresses",
|
|
||||||
"published": 1,
|
|
||||||
"success_message": null,
|
|
||||||
"success_url": "/addresses",
|
|
||||||
"title": "Addresses",
|
|
||||||
"web_form_fields": [
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": "",
|
|
||||||
"fieldname": "address_title",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Address Title",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "address_type",
|
|
||||||
"fieldtype": "Select",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Address Type",
|
|
||||||
"options": "Billing\nShipping\nOffice\nPersonal\nPlant\nPostal\nShop\nSubsidiary\nWarehouse\nOther",
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "address_line1",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Address Line 1",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "address_line2",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Address Line 2",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "city",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "City/Town",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "state",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "State",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "pincode",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Postal Code",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "country",
|
|
||||||
"fieldtype": "Link",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Country",
|
|
||||||
"options": "Country",
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": null,
|
|
||||||
"fieldtype": "Column Break",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": null,
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "email_id",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Email Id",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "phone",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Phone",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": "0",
|
|
||||||
"description": "",
|
|
||||||
"fieldname": "is_primary_address",
|
|
||||||
"fieldtype": "Check",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Preferred Billing Address",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": "0",
|
|
||||||
"description": "",
|
|
||||||
"fieldname": "is_shipping_address",
|
|
||||||
"fieldtype": "Check",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Preferred Shipping Address",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"web_page_link_text": null
|
|
||||||
}
|
|
||||||
]
|
|
@ -1,69 +0,0 @@
|
|||||||
[
|
|
||||||
{
|
|
||||||
"allow_comments": 1,
|
|
||||||
"allow_delete": 1,
|
|
||||||
"allow_edit": 1,
|
|
||||||
"allow_multiple": 1,
|
|
||||||
"breadcrumbs": "[{\"title\":\"Issues\", \"name\":\"issues\"}]",
|
|
||||||
"doc_type": "Issue",
|
|
||||||
"docstatus": 0,
|
|
||||||
"doctype": "Web Form",
|
|
||||||
"is_standard": 1,
|
|
||||||
"introduction_text": null,
|
|
||||||
"login_required": 1,
|
|
||||||
"modified": "2015-06-01 08:14:26.350792",
|
|
||||||
"name": "issues",
|
|
||||||
"page_name": "issues",
|
|
||||||
"published": 1,
|
|
||||||
"success_message": "",
|
|
||||||
"success_url": "/issues",
|
|
||||||
"title": "Issues",
|
|
||||||
"web_form_fields": [
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "subject",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Subject",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": "Open",
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "status",
|
|
||||||
"fieldtype": "Select",
|
|
||||||
"hidden": null,
|
|
||||||
"label": "Status",
|
|
||||||
"options": "Open\nReplied\nHold\nClosed",
|
|
||||||
"read_only": 1,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "description",
|
|
||||||
"fieldtype": "Text",
|
|
||||||
"hidden": 0,
|
|
||||||
"label": "Description",
|
|
||||||
"options": null,
|
|
||||||
"read_only": 0,
|
|
||||||
"reqd": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"default": null,
|
|
||||||
"description": null,
|
|
||||||
"fieldname": "attachment",
|
|
||||||
"fieldtype": "Attach",
|
|
||||||
"hidden": null,
|
|
||||||
"label": "Attachment",
|
|
||||||
"options": null,
|
|
||||||
"read_only": null,
|
|
||||||
"reqd": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"web_page_link_text": null
|
|
||||||
}
|
|
||||||
]
|
|
@ -14,7 +14,6 @@ def after_install():
|
|||||||
feature_setup()
|
feature_setup()
|
||||||
from frappe.desk.page.setup_wizard.setup_wizard import add_all_roles_to
|
from frappe.desk.page.setup_wizard.setup_wizard import add_all_roles_to
|
||||||
add_all_roles_to("Administrator")
|
add_all_roles_to("Administrator")
|
||||||
add_web_forms()
|
|
||||||
frappe.db.commit()
|
frappe.db.commit()
|
||||||
|
|
||||||
def check_setup_wizard_not_completed():
|
def check_setup_wizard_not_completed():
|
||||||
@ -57,11 +56,3 @@ def set_single_defaults():
|
|||||||
|
|
||||||
frappe.db.set_default("date_format", "dd-mm-yyyy")
|
frappe.db.set_default("date_format", "dd-mm-yyyy")
|
||||||
|
|
||||||
def add_web_forms():
|
|
||||||
"""Import web forms for Issues and Addresses"""
|
|
||||||
from frappe.modules.import_file import import_file_by_path
|
|
||||||
|
|
||||||
import_file_by_path(frappe.get_app_path("erpnext", "setup/fixtures/web_form/issues.json"),
|
|
||||||
data_import=True)
|
|
||||||
import_file_by_path(frappe.get_app_path("erpnext", "setup/fixtures/web_form/addresses.json"),
|
|
||||||
data_import=True)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user