feat: default letter head
This commit is contained in:
@@ -8,7 +8,7 @@ app_license = "gpl-3.0"
|
||||
# Apps
|
||||
# ------------------
|
||||
|
||||
# required_apps = []
|
||||
required_apps = ["erpnext"]
|
||||
|
||||
# Each item in the list will be shown as an app in the apps page
|
||||
# add_to_apps_screen = [
|
||||
@@ -74,10 +74,17 @@ app_license = "gpl-3.0"
|
||||
# ----------
|
||||
|
||||
# add methods and filters to jinja environment
|
||||
# jinja = {
|
||||
# "methods": "default_thai_company.utils.jinja_methods",
|
||||
# "filters": "default_thai_company.utils.jinja_filters"
|
||||
# }
|
||||
jinja = {
|
||||
"methods": ["default_thai_company.utils.get_letter_head_company"],
|
||||
}
|
||||
|
||||
# Fixtures
|
||||
# --------
|
||||
|
||||
fixtures = [
|
||||
{"doctype": "Letter Head", "filters": [["name", "in", ["Default Letter Head"]]]},
|
||||
{"doctype": "Address Template", "filters": [["name", "in", ["Thailand"]]]},
|
||||
]
|
||||
|
||||
# Installation
|
||||
# ------------
|
||||
@@ -137,13 +144,12 @@ app_license = "gpl-3.0"
|
||||
# ---------------
|
||||
# Hook on document methods and events
|
||||
|
||||
# doc_events = {
|
||||
# "*": {
|
||||
# "on_update": "method",
|
||||
# "on_cancel": "method",
|
||||
# "on_trash": "method"
|
||||
# }
|
||||
# }
|
||||
doc_events = {
|
||||
"Letter Head": {
|
||||
"before_import": "default_thai_company.utils.stash_letter_head_source",
|
||||
"before_insert": "default_thai_company.utils.restore_letter_head_source",
|
||||
}
|
||||
}
|
||||
|
||||
# Scheduled Tasks
|
||||
# ---------------
|
||||
@@ -246,4 +252,3 @@ app_license = "gpl-3.0"
|
||||
# ------------
|
||||
# List of apps whose translatable strings should be excluded from this app's translations.
|
||||
# ignore_translatable_strings_from = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user