[feature] override a function regionally by adding a decorator

This commit is contained in:
Rushabh Mehta
2017-07-13 15:00:56 +05:30
parent c3153655eb
commit 7231f29e78
3 changed files with 38 additions and 1 deletions

View File

@@ -1,6 +1,5 @@
from __future__ import unicode_literals
from frappe import _
from . import __version__ as app_version
app_name = "erpnext"
app_title = "ERPNext"
@@ -211,3 +210,9 @@ bot_parsers = [
get_site_info = 'erpnext.utilities.get_site_info'
payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account"
regional_overrides = {
'India': {
'erpnext.tests.test_regional.test_method': 'erpnext.regional.india.utils.test_method'
}
}