Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: techmaxsolucoes/title_links
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: marquelzikri/title_links
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
Loading
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## Title Links
## Title Links (ERPNext version 12 support)

### Note
I added allowed routes functions so that this Link field formatter only works on desired routes and not breaking other Link fields on some routes. Because somehow this formatter doesn't worked on reference_doctype field at 'Data Export'. You can add your preffered routes at Title Link Fields Formatter Setup doctype.

##

In some cases, we need hide the standard name of a DocType in favor of another value in the doctype,
and get it simple to the end user.
@@ -41,4 +46,4 @@ Don't worry with Link Formatters, title links already define it to you!

#### License

MIT
MIT
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from pip.req import parse_requirements
# from pip.req import parse_requirements

try: # for pip >= 10
from pip._internal.req import parse_requirements
except ImportError: # for pip <= 9.0.3
from pip.req import parse_requirements

version = '0.0.1'
requirements = parse_requirements("requirements.txt", session="")
6 changes: 3 additions & 3 deletions title_links/hooks.py
Original file line number Diff line number Diff line change
@@ -109,6 +109,6 @@
# Overriding Whitelisted Methods
# ------------------------------
#
override_whitelisted_methods = {
"frappe.desk.search.search_link": "title_links.routes.search_link"
}
# override_whitelisted_methods = {
# "frappe.desk.search.search_link": "title_links.routes.search_link"
# }
Loading