diff --git a/erpnext/public/js/help_links.js b/erpnext/public/js/help_links.js index a436cac66b9..472c5374f5b 100644 --- a/erpnext/public/js/help_links.js +++ b/erpnext/public/js/help_links.js @@ -234,7 +234,7 @@ frappe.help.help_links['company'] = [ //Accounts -frappe.help.help_links['space/Accounts'] = [ +frappe.help.help_links['accounts'] = [ { label: 'Introduction to Accounts', url: docsUrl + 'user/manual/en/accounts/' }, { label: 'Chart of Accounts', url: docsUrl + 'user/manual/en/accounts/chart-of-accounts.html' }, { label: 'Multi Currency Accounting', url: docsUrl + 'user/manual/en/accounts/multi-currency-accounting' }, diff --git a/erpnext/setup/workspace/home/home.json b/erpnext/setup/workspace/home/home.json index 13c1172fad8..69ca7cf9add 100644 --- a/erpnext/setup/workspace/home/home.json +++ b/erpnext/setup/workspace/home/home.json @@ -417,7 +417,7 @@ "type": "Link" } ], - "modified": "2020-12-16 10:24:52.088466", + "modified": "2021-01-01 12:13:16.055668", "modified_by": "Administrator", "module": "Setup", "name": "Home", diff --git a/erpnext/tests/test_search.py b/erpnext/tests/test_search.py index 566495f1ecc..f60e5e4d983 100644 --- a/erpnext/tests/test_search.py +++ b/erpnext/tests/test_search.py @@ -6,13 +6,13 @@ from frappe.contacts.address_and_contact import filter_dynamic_link_doctypes class TestSearch(unittest.TestCase): # Search for the word "cond", part of the word "conduire" (Lead) in french. def test_contact_search_in_foreign_language(self): - frappe.local.lang = 'fr' - output = filter_dynamic_link_doctypes("DocType", "cond", "name", 0, 20, { - 'fieldtype': 'HTML', - 'fieldname': 'contact_html' - }) - result = [['found' for x in y if x=="Lead"] for y in output] - self.assertTrue(['found'] in result) - - def tearDown(self): - frappe.local.lang = 'en' \ No newline at end of file + try: + frappe.local.lang = 'fr' + output = filter_dynamic_link_doctypes("DocType", "cond", "name", 0, 20, { + 'fieldtype': 'HTML', + 'fieldname': 'contact_html' + }) + result = [['found' for x in y if x=="Lead"] for y in output] + self.assertTrue(['found'] in result) + finally: + frappe.local.lang = 'en'