diff --git a/crm/install.py b/crm/install.py index bf38d556..1cbdb66d 100644 --- a/crm/install.py +++ b/crm/install.py @@ -203,12 +203,12 @@ def add_email_template_custom_fields(): def add_default_industries(): industries = ["Accounting", "Advertising", "Aerospace", "Agriculture", "Airline", "Apparel & Accessories", "Automotive", "Banking", "Biotechnology", "Broadcasting", "Brokerage", "Chemical", "Computer", "Consulting", "Consumer Products", "Cosmetics", "Defense", "Department Stores", "Education", "Electronics", "Energy", "Entertainment & Leisure, Executive Search", "Financial Services", "Food", "Beverage & Tobacco", "Grocery", "Health Care", "Internet Publishing", "Investment Banking", "Legal", "Manufacturing", "Motion Picture & Video", "Music", "Newspaper Publishers", "Online Auctions", "Pension Funds", "Pharmaceuticals", "Private Equity", "Publishing", "Real Estate", "Retail & Wholesale", "Securities & Commodity Exchanges", "Service", "Soap & Detergent", "Software", "Sports", "Technology", "Telecommunications", "Television", "Transportation", "Venture Capital"] - for rec in industries: - if frappe.db.exists("CRM Industry", rec): + for industry in industries: + if frappe.db.exists("CRM Industry", industry): continue doc = frappe.new_doc("CRM Industry") - doc.industry = rec + doc.industry = industry doc.insert()