37 lines
846 B
Python
37 lines
846 B
Python
app_name = "westech_r2"
|
|
app_title = "Westech R2"
|
|
app_publisher = "Westech"
|
|
app_description = "R2 Tracking for Westech Recyclers"
|
|
app_email = ""
|
|
app_license = "MIT"
|
|
|
|
# Fixtures - these will be exported/imported
|
|
fixtures = [
|
|
"Custom Field",
|
|
"DocType",
|
|
"Workspace",
|
|
]
|
|
|
|
# Required apps
|
|
required_apps = ["erpnext"]
|
|
|
|
# DocType event hooks
|
|
doc_events = {
|
|
"Pallet": {
|
|
"before_save": "westech_r2.doctype.pallet.pallet.update_serial_nos",
|
|
},
|
|
"Scheduled Pickup": {
|
|
"before_save": "westech_r2.doctype.scheduled_pickup.scheduled_pickup.set_title",
|
|
},
|
|
"Load": {
|
|
"before_save": "westech_r2.doctype.load.load.calculate_totals",
|
|
},
|
|
}
|
|
|
|
# Include JS in forms
|
|
app_include_js = [
|
|
"/assets/westech_r2/js/scheduled_pickup.js",
|
|
"/assets/westech_r2/js/load.js",
|
|
"/assets/westech_r2/js/pallet.js",
|
|
]
|