From ced14cc78936e5393df627ee451c42c8214fd7b0 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 20 Jul 2017 15:55:54 +0530 Subject: [PATCH] [fix] setup-wizard --- erpnext/public/js/setup_wizard.js | 2 +- erpnext/setup/setup_wizard/setup_wizard.py | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/erpnext/public/js/setup_wizard.js b/erpnext/public/js/setup_wizard.js index cb48c2523b..016309833a 100644 --- a/erpnext/public/js/setup_wizard.js +++ b/erpnext/public/js/setup_wizard.js @@ -236,7 +236,7 @@ var erpnext_slides = [ help: __("List your tax heads (e.g. VAT, Customs etc; they should have unique names) and their standard rates. This will create a standard template, which you can edit and add more later."), add_more: 1, max_count: 3, - mandatory_entry: 1, + mandatory_entry: 0, fields: [ {fieldtype:"Section Break"}, {fieldtype:"Data", fieldname:"tax", label:__("Tax"), diff --git a/erpnext/setup/setup_wizard/setup_wizard.py b/erpnext/setup/setup_wizard/setup_wizard.py index 8b218dd5a2..4dec3d75f7 100644 --- a/erpnext/setup/setup_wizard/setup_wizard.py +++ b/erpnext/setup/setup_wizard/setup_wizard.py @@ -287,12 +287,9 @@ def make_tax_account_and_template(company, account_name, tax_rate, template_name if accounts: make_sales_and_purchase_tax_templates(accounts, template_name) - except frappe.NameError, e: - if e.args[2][0]==1062: - pass - else: - raise - except RootNotEditable, e: + except frappe.NameError: + pass + except RootNotEditable: pass def get_tax_account_group(company):