mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fixed message url in recurring invoice error message
This commit is contained in:
@@ -438,7 +438,15 @@ def manage_recurring_invoices():
|
|||||||
|
|
||||||
|
|
||||||
def notify_errors(inv, owner):
|
def notify_errors(inv, owner):
|
||||||
|
import webnotes
|
||||||
from webnotes.utils import get_request_site_address
|
from webnotes.utils import get_request_site_address
|
||||||
|
url = get_request_site_address()
|
||||||
|
if not url or url=='http://localhost':
|
||||||
|
new_url = webnotes.conn.get_value('Website Settings', 'Website Settings',
|
||||||
|
'subdomain')
|
||||||
|
if new_url:
|
||||||
|
url = new_url
|
||||||
|
|
||||||
exception_msg = """
|
exception_msg = """
|
||||||
Dear User,
|
Dear User,
|
||||||
|
|
||||||
@@ -459,7 +467,7 @@ def notify_errors(inv, owner):
|
|||||||
Regards,
|
Regards,
|
||||||
Administrator
|
Administrator
|
||||||
|
|
||||||
""" % (inv, get_request_site_address(), inv)
|
""" % (inv, url, inv)
|
||||||
subj = "[Urgent] Error while creating recurring invoice from %s" % inv
|
subj = "[Urgent] Error while creating recurring invoice from %s" % inv
|
||||||
import webnotes.utils
|
import webnotes.utils
|
||||||
recipients = webnotes.utils.get_system_managers_list()
|
recipients = webnotes.utils.get_system_managers_list()
|
||||||
|
|||||||
Reference in New Issue
Block a user