fix: set version to 11.1.0, remove staging_version
diff --git a/erpnext/__init__.py b/erpnext/__init__.py
index 635f189..0e71525 100644
--- a/erpnext/__init__.py
+++ b/erpnext/__init__.py
@@ -5,7 +5,7 @@
from erpnext.hooks import regional_overrides
from frappe.utils import getdate
-__version__ = '10.1.81'
+__version__ = '11.1.0'
def get_default_company(user=None):
'''Get default company for user'''
@@ -74,7 +74,7 @@
frappe.local.enable_perpetual_inventory = {}
if not company in frappe.local.enable_perpetual_inventory:
- frappe.local.enable_perpetual_inventory[company] = frappe.get_cached_value('Company',
+ frappe.local.enable_perpetual_inventory[company] = frappe.get_cached_value('Company',
company, "enable_perpetual_inventory") or 0
return frappe.local.enable_perpetual_inventory[company]
@@ -87,7 +87,7 @@
frappe.local.default_finance_book = {}
if not company in frappe.local.default_finance_book:
- frappe.local.default_finance_book[company] = frappe.get_cached_value('Company',
+ frappe.local.default_finance_book[company] = frappe.get_cached_value('Company',
company, "default_finance_book")
return frappe.local.default_finance_book[company]
@@ -108,7 +108,7 @@
You can also set global company flag in `frappe.flags.company`
'''
if company or frappe.flags.company:
- return frappe.get_cached_value('Company',
+ return frappe.get_cached_value('Company',
company or frappe.flags.company, 'country')
elif frappe.flags.country:
return frappe.flags.country
diff --git a/erpnext/hooks.py b/erpnext/hooks.py
index 5fdef88..7d77f90 100644
--- a/erpnext/hooks.py
+++ b/erpnext/hooks.py
@@ -12,7 +12,6 @@
source_link = "https://github.com/frappe/erpnext"
develop_version = '12.x.x-develop'
-staging_version = '11.1.0'
error_report_email = "support@erpnext.com"