chore: Remove domains from Setup

This commit is contained in:
Deepesh Garg
2022-04-27 13:32:51 +05:30
parent deed9702cf
commit 429361ce87
19 changed files with 3 additions and 843 deletions

View File

@@ -12,37 +12,6 @@ frappe.setup.on("before_load", function () {
});
erpnext.setup.slides_settings = [
{
// Domain
name: 'domain',
title: __('Select your Domains'),
fields: [
{
fieldname: 'domains',
label: __('Domains'),
fieldtype: 'MultiCheck',
options: [
{ "label": __("Distribution"), "value": "Distribution" },
{ "label": __("Education"), "value": "Education" },
{ "label": __("Manufacturing"), "value": "Manufacturing" },
{ "label": __("Retail"), "value": "Retail" },
{ "label": __("Services"), "value": "Services" },
{ "label": __("Healthcare (beta)"), "value": "Healthcare" },
{ "label": __("Non Profit (beta)"), "value": "Non Profit" }
], reqd: 1
},
],
// help: __('Select the nature of your business.'),
validate: function () {
if (this.values.domains.length === 0) {
frappe.msgprint(__("Please select at least one domain."));
return false;
}
frappe.setup.domains = this.values.domains;
return true;
},
},
{
// Brand
name: 'brand',