fix(minor): routing

This commit is contained in:
Rushabh Mehta 2021-01-08 14:37:38 +05:30
parent ab1c2b7631
commit f8a6dde8d8
3 changed files with 12 additions and 12 deletions

View File

@ -234,7 +234,7 @@ frappe.help.help_links['company'] = [
//Accounts //Accounts
frappe.help.help_links['space/Accounts'] = [ frappe.help.help_links['accounts'] = [
{ label: 'Introduction to Accounts', url: docsUrl + 'user/manual/en/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: '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' }, { label: 'Multi Currency Accounting', url: docsUrl + 'user/manual/en/accounts/multi-currency-accounting' },

View File

@ -417,7 +417,7 @@
"type": "Link" "type": "Link"
} }
], ],
"modified": "2020-12-16 10:24:52.088466", "modified": "2021-01-01 12:13:16.055668",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Setup", "module": "Setup",
"name": "Home", "name": "Home",

View File

@ -6,13 +6,13 @@ from frappe.contacts.address_and_contact import filter_dynamic_link_doctypes
class TestSearch(unittest.TestCase): class TestSearch(unittest.TestCase):
# Search for the word "cond", part of the word "conduire" (Lead) in french. # Search for the word "cond", part of the word "conduire" (Lead) in french.
def test_contact_search_in_foreign_language(self): def test_contact_search_in_foreign_language(self):
frappe.local.lang = 'fr' try:
output = filter_dynamic_link_doctypes("DocType", "cond", "name", 0, 20, { frappe.local.lang = 'fr'
'fieldtype': 'HTML', output = filter_dynamic_link_doctypes("DocType", "cond", "name", 0, 20, {
'fieldname': 'contact_html' 'fieldtype': 'HTML',
}) 'fieldname': 'contact_html'
result = [['found' for x in y if x=="Lead"] for y in output] })
self.assertTrue(['found'] in result) result = [['found' for x in y if x=="Lead"] for y in output]
self.assertTrue(['found'] in result)
def tearDown(self): finally:
frappe.local.lang = 'en' frappe.local.lang = 'en'