mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
[setup] new page + minor fixes
This commit is contained in:
@@ -22,8 +22,12 @@ def boot_session(bootinfo):
|
||||
"Notification Control").get_values()
|
||||
|
||||
# if no company, show a dialog box to create a new company
|
||||
bootinfo['setup_complete'] = webnotes.conn.sql("""select name from
|
||||
tabCompany limit 1""") and 'Yes' or 'No'
|
||||
bootinfo["customer_count"] = webnotes.conn.sql("""select count(*) from tabCustomer""")[0][0]
|
||||
|
||||
if not bootinfo["customer_count"]:
|
||||
bootinfo['setup_complete'] = webnotes.conn.sql("""select name from
|
||||
tabCompany limit 1""") and 'Yes' or 'No'
|
||||
|
||||
|
||||
# load subscription info
|
||||
import conf
|
||||
|
||||
@@ -135,13 +135,7 @@ def import_defaults():
|
||||
|
||||
# supplier type
|
||||
{'doctype': 'Supplier Type', 'name': 'Default Supplier Type', 'supplier_type': 'Default Supplier Type'},
|
||||
|
||||
# Price List
|
||||
{'doctype': 'Price List', 'name': 'Default Price List', 'price_list_name': 'Default Price List',
|
||||
"buying_or_selling": "Selling"},
|
||||
{'doctype': 'Price List', 'name': 'Standard', 'price_list_name': 'Standard',
|
||||
"buying_or_selling": "Selling"},
|
||||
|
||||
|
||||
# warehouse type
|
||||
{'doctype': 'Warehouse Type', 'name': 'Default Warehouse Type', 'warehouse_type': 'Default Warehouse Type'},
|
||||
{'doctype': 'Warehouse Type', 'name': 'Fixed Asset', 'warehouse_type': 'Fixed Asset'},
|
||||
|
||||
Reference in New Issue
Block a user