[enhancement] default terms in company, fixes #3231

This commit is contained in:
Rushabh Mehta
2015-05-19 12:00:34 +05:30
parent 1a84d8ecd2
commit 5495bc54a5
6 changed files with 34 additions and 36 deletions

View File

@@ -29,8 +29,9 @@ def boot_session(bootinfo):
bootinfo.setup_complete = frappe.db.sql("""select name from
tabCompany limit 1""") and 'Yes' or 'No'
bootinfo.docs += frappe.db.sql("""select name, default_currency, cost_center
from `tabCompany`""", as_dict=1, update={"doctype":":Company"})
bootinfo.docs += frappe.db.sql("""select name, default_currency, cost_center,
default_terms, default_letter_head from `tabCompany`""",
as_dict=1, update={"doctype":":Company"})
def load_country_and_currency(bootinfo):
country = frappe.db.get_default("country")