[Enhancement] Added letter head for the report (#7250)
This commit is contained in:
committed by
Rushabh Mehta
parent
17d05b4fd7
commit
34e820d02d
@@ -13,8 +13,6 @@ def boot_session(bootinfo):
|
||||
bootinfo.website_settings = frappe.get_doc('Website Settings')
|
||||
|
||||
if frappe.session['user']!='Guest':
|
||||
bootinfo.letter_heads = get_letter_heads()
|
||||
|
||||
update_page_info(bootinfo)
|
||||
|
||||
load_country_and_currency(bootinfo)
|
||||
@@ -42,12 +40,6 @@ def load_country_and_currency(bootinfo):
|
||||
number_format, smallest_currency_fraction_value, symbol from tabCurrency
|
||||
where enabled=1""", as_dict=1, update={"doctype":":Currency"})
|
||||
|
||||
def get_letter_heads():
|
||||
import frappe
|
||||
ret = frappe.db.sql("""select name, content from `tabLetter Head`
|
||||
where disabled=0""")
|
||||
return dict(ret)
|
||||
|
||||
def update_page_info(bootinfo):
|
||||
bootinfo.page_info.update({
|
||||
"Chart of Accounts": {
|
||||
|
||||
Reference in New Issue
Block a user