Update config.py

This commit is contained in:
Jiri 2022-03-19 20:29:46 +01:00
parent 11ef883c0a
commit e81e33df69

View File

@ -139,6 +139,7 @@ def config(settings):
languages = OrderedDict([
("cs", "Czech"),
("en", "English"),
("ua", "Ukraine"),
])
settings.L10n.languages = languages
settings.cap.languages = languages
@ -194,6 +195,7 @@ def config(settings):
"GBP" : "Great British Pounds",
"USD" : "United States Dollars",
"CHF" : "Switzerland Franc",
"UAH" : "Ukrainian hryvnia",
}
settings.fin.currency_default = "CZK"
#settings.fin.currency_writable = False # False currently breaks things
@ -468,9 +470,9 @@ def config(settings):
# --- Need Categories ---
# Use hierarchical need categories
#settings.br.needs_hierarchical = True
settings.br.needs_hierarchical = True
# Let all orgs use a common set of need categories
#settings.br.needs_org_specific = False
settings.br.needs_org_specific = False
# --- Basic Case Options ---
# Show the case organisation even if only one option
@ -609,9 +611,9 @@ def config(settings):
# Uncomment to use Tags for Shelters
settings.cr.tags = True
# Uncomment to generate tasks from shelter inspections (requires project module)
#settings.cr.shelter_inspection_tasks = True
settings.cr.shelter_inspection_tasks = True
# Configure active statuses for shelter inspection tasks (subset of project.task_status_opts)
#settings.cr.shelter_inspection_task_active_statuses = (2, 3, 6)
settings.cr.shelter_inspection_task_active_statuses = (2, 3, 6)
# -------------------------------------------------------------------------
# Events
@ -690,11 +692,11 @@ def config(settings):
# Enable the use of Organisation Branches
settings.org.branches = True
# Show branches as tree rather than as table
#settings.org.branches_tree_view = True
settings.org.branches_tree_view = True
# Make Facility Types Hierarchical
settings.org.facility_types_hierarchical = True
# Enable the use of Organisation Groups & what their name is
# settings.org.groups = "Coalition"
settings.org.groups = "Coalition"
# settings.org.groups = "Network"
# Organisation Location context
settings.org.organisation_location_context = "organisation_location.location_id"
@ -715,7 +717,7 @@ def config(settings):
# Make Services Hierarchical
settings.org.services_hierarchical = True
# Set the length of the auto-generated org/site code the default is 10
#settings.org.site_code_len = 3
settings.org.site_code_len = 15
# Set the label for Sites
settings.org.site_label = "Facility"
# Uncomment to show the date when a Site (Facilities-only for now) was last contacted
@ -931,7 +933,7 @@ def config(settings):
# -------------------------------------------------------------------------
# Supply
# Name of the Default Item Catalog. Do not edit after deployment
#settings.supply.catalog_default = "Default"
settings.supply.catalog_default = "Katalog"
# Disable the use of Multiple Item Catalogs
#settings.supply.catalog_multi = False
# Disable the use of Alternative Items