fix(minor): routing
This commit is contained in:
parent
ab1c2b7631
commit
f8a6dde8d8
@ -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' },
|
||||
|
@ -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",
|
||||
|
@ -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'
|
||||
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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user