mirror of
				https://github.com/itsdave-de/fusionpbx_connect.git
				synced 2025-11-03 13:41:08 -03:00 
			
		
		
		
	feat: Initialize App
This commit is contained in:
		
						commit
						9ba7d5df88
					
				
							
								
								
									
										7
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					.DS_Store
 | 
				
			||||||
 | 
					*.pyc
 | 
				
			||||||
 | 
					*.egg-info
 | 
				
			||||||
 | 
					*.swp
 | 
				
			||||||
 | 
					tags
 | 
				
			||||||
 | 
					fleet_management/docs/current
 | 
				
			||||||
 | 
					node_modules/
 | 
				
			||||||
							
								
								
									
										18
									
								
								MANIFEST.in
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								MANIFEST.in
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
				
			|||||||
 | 
					include MANIFEST.in
 | 
				
			||||||
 | 
					include requirements.txt
 | 
				
			||||||
 | 
					include *.json
 | 
				
			||||||
 | 
					include *.md
 | 
				
			||||||
 | 
					include *.py
 | 
				
			||||||
 | 
					include *.txt
 | 
				
			||||||
 | 
					recursive-include fleet_management *.css
 | 
				
			||||||
 | 
					recursive-include fleet_management *.csv
 | 
				
			||||||
 | 
					recursive-include fleet_management *.html
 | 
				
			||||||
 | 
					recursive-include fleet_management *.ico
 | 
				
			||||||
 | 
					recursive-include fleet_management *.js
 | 
				
			||||||
 | 
					recursive-include fleet_management *.json
 | 
				
			||||||
 | 
					recursive-include fleet_management *.md
 | 
				
			||||||
 | 
					recursive-include fleet_management *.png
 | 
				
			||||||
 | 
					recursive-include fleet_management *.py
 | 
				
			||||||
 | 
					recursive-include fleet_management *.svg
 | 
				
			||||||
 | 
					recursive-include fleet_management *.txt
 | 
				
			||||||
 | 
					recursive-exclude fleet_management *.pyc
 | 
				
			||||||
							
								
								
									
										7
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					## Fleet Management
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Manage the Fleet of your Company
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#### License
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					GPLv3
 | 
				
			||||||
							
								
								
									
										3
									
								
								fleet_management/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								fleet_management/__init__.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,3 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					__version__ = '0.0.1'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										0
									
								
								fleet_management/config/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								fleet_management/config/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										10
									
								
								fleet_management/config/desktop.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								fleet_management/config/desktop.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					from frappe import _
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def get_data():
 | 
				
			||||||
 | 
						return [
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								"module_name": "Fleet Management",
 | 
				
			||||||
 | 
								"type": "module",
 | 
				
			||||||
 | 
								"label": _("Fleet Management")
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
							
								
								
									
										10
									
								
								fleet_management/config/docs.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								fleet_management/config/docs.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,10 @@
 | 
				
			|||||||
 | 
					"""
 | 
				
			||||||
 | 
					Configuration for docs
 | 
				
			||||||
 | 
					"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# source_link = "https://github.com/[org_name]/fleet_management"
 | 
				
			||||||
 | 
					# headline = "App that does everything"
 | 
				
			||||||
 | 
					# sub_heading = "Yes, you got that right the first time, everything"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					def get_context(context):
 | 
				
			||||||
 | 
						context.brand_html = "Fleet Management"
 | 
				
			||||||
							
								
								
									
										0
									
								
								fleet_management/fleet_management/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								fleet_management/fleet_management/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										217
									
								
								fleet_management/hooks.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										217
									
								
								fleet_management/hooks.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,217 @@
 | 
				
			|||||||
 | 
					from . import __version__ as app_version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					app_name = "fleet_management"
 | 
				
			||||||
 | 
					app_title = "Fleet Management"
 | 
				
			||||||
 | 
					app_publisher = "itsdave GmbH"
 | 
				
			||||||
 | 
					app_description = "Manage the Fleet of your Company"
 | 
				
			||||||
 | 
					app_email = "dev@itsdave.de"
 | 
				
			||||||
 | 
					app_license = "GPLv3"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Includes in <head>
 | 
				
			||||||
 | 
					# ------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# include js, css files in header of desk.html
 | 
				
			||||||
 | 
					# app_include_css = "/assets/fleet_management/css/fleet_management.css"
 | 
				
			||||||
 | 
					# app_include_js = "/assets/fleet_management/js/fleet_management.js"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# include js, css files in header of web template
 | 
				
			||||||
 | 
					# web_include_css = "/assets/fleet_management/css/fleet_management.css"
 | 
				
			||||||
 | 
					# web_include_js = "/assets/fleet_management/js/fleet_management.js"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# include custom scss in every website theme (without file extension ".scss")
 | 
				
			||||||
 | 
					# website_theme_scss = "fleet_management/public/scss/website"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# include js, css files in header of web form
 | 
				
			||||||
 | 
					# webform_include_js = {"doctype": "public/js/doctype.js"}
 | 
				
			||||||
 | 
					# webform_include_css = {"doctype": "public/css/doctype.css"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# include js in page
 | 
				
			||||||
 | 
					# page_js = {"page" : "public/js/file.js"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# include js in doctype views
 | 
				
			||||||
 | 
					# doctype_js = {"doctype" : "public/js/doctype.js"}
 | 
				
			||||||
 | 
					# doctype_list_js = {"doctype" : "public/js/doctype_list.js"}
 | 
				
			||||||
 | 
					# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
 | 
				
			||||||
 | 
					# doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Home Pages
 | 
				
			||||||
 | 
					# ----------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# application home page (will override Website Settings)
 | 
				
			||||||
 | 
					# home_page = "login"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# website user home page (by Role)
 | 
				
			||||||
 | 
					# role_home_page = {
 | 
				
			||||||
 | 
					#	"Role": "home_page"
 | 
				
			||||||
 | 
					# }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Generators
 | 
				
			||||||
 | 
					# ----------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# automatically create page for each record of this doctype
 | 
				
			||||||
 | 
					# website_generators = ["Web Page"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Jinja
 | 
				
			||||||
 | 
					# ----------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# add methods and filters to jinja environment
 | 
				
			||||||
 | 
					# jinja = {
 | 
				
			||||||
 | 
					#	"methods": "fleet_management.utils.jinja_methods",
 | 
				
			||||||
 | 
					#	"filters": "fleet_management.utils.jinja_filters"
 | 
				
			||||||
 | 
					# }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Installation
 | 
				
			||||||
 | 
					# ------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# before_install = "fleet_management.install.before_install"
 | 
				
			||||||
 | 
					# after_install = "fleet_management.install.after_install"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Uninstallation
 | 
				
			||||||
 | 
					# ------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# before_uninstall = "fleet_management.uninstall.before_uninstall"
 | 
				
			||||||
 | 
					# after_uninstall = "fleet_management.uninstall.after_uninstall"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Integration Setup
 | 
				
			||||||
 | 
					# ------------------
 | 
				
			||||||
 | 
					# To set up dependencies/integrations with other apps
 | 
				
			||||||
 | 
					# Name of the app being installed is passed as an argument
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# before_app_install = "fleet_management.utils.before_app_install"
 | 
				
			||||||
 | 
					# after_app_install = "fleet_management.utils.after_app_install"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Integration Cleanup
 | 
				
			||||||
 | 
					# -------------------
 | 
				
			||||||
 | 
					# To clean up dependencies/integrations with other apps
 | 
				
			||||||
 | 
					# Name of the app being uninstalled is passed as an argument
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# before_app_uninstall = "fleet_management.utils.before_app_uninstall"
 | 
				
			||||||
 | 
					# after_app_uninstall = "fleet_management.utils.after_app_uninstall"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Desk Notifications
 | 
				
			||||||
 | 
					# ------------------
 | 
				
			||||||
 | 
					# See frappe.core.notifications.get_notification_config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# notification_config = "fleet_management.notifications.get_notification_config"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Permissions
 | 
				
			||||||
 | 
					# -----------
 | 
				
			||||||
 | 
					# Permissions evaluated in scripted ways
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# permission_query_conditions = {
 | 
				
			||||||
 | 
					#	"Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
 | 
				
			||||||
 | 
					# }
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# has_permission = {
 | 
				
			||||||
 | 
					#	"Event": "frappe.desk.doctype.event.event.has_permission",
 | 
				
			||||||
 | 
					# }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# DocType Class
 | 
				
			||||||
 | 
					# ---------------
 | 
				
			||||||
 | 
					# Override standard doctype classes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# override_doctype_class = {
 | 
				
			||||||
 | 
					#	"ToDo": "custom_app.overrides.CustomToDo"
 | 
				
			||||||
 | 
					# }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Document Events
 | 
				
			||||||
 | 
					# ---------------
 | 
				
			||||||
 | 
					# Hook on document methods and events
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# doc_events = {
 | 
				
			||||||
 | 
					#	"*": {
 | 
				
			||||||
 | 
					#		"on_update": "method",
 | 
				
			||||||
 | 
					#		"on_cancel": "method",
 | 
				
			||||||
 | 
					#		"on_trash": "method"
 | 
				
			||||||
 | 
					#	}
 | 
				
			||||||
 | 
					# }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Scheduled Tasks
 | 
				
			||||||
 | 
					# ---------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# scheduler_events = {
 | 
				
			||||||
 | 
					#	"all": [
 | 
				
			||||||
 | 
					#		"fleet_management.tasks.all"
 | 
				
			||||||
 | 
					#	],
 | 
				
			||||||
 | 
					#	"daily": [
 | 
				
			||||||
 | 
					#		"fleet_management.tasks.daily"
 | 
				
			||||||
 | 
					#	],
 | 
				
			||||||
 | 
					#	"hourly": [
 | 
				
			||||||
 | 
					#		"fleet_management.tasks.hourly"
 | 
				
			||||||
 | 
					#	],
 | 
				
			||||||
 | 
					#	"weekly": [
 | 
				
			||||||
 | 
					#		"fleet_management.tasks.weekly"
 | 
				
			||||||
 | 
					#	],
 | 
				
			||||||
 | 
					#	"monthly": [
 | 
				
			||||||
 | 
					#		"fleet_management.tasks.monthly"
 | 
				
			||||||
 | 
					#	],
 | 
				
			||||||
 | 
					# }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Testing
 | 
				
			||||||
 | 
					# -------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# before_tests = "fleet_management.install.before_tests"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Overriding Methods
 | 
				
			||||||
 | 
					# ------------------------------
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# override_whitelisted_methods = {
 | 
				
			||||||
 | 
					#	"frappe.desk.doctype.event.event.get_events": "fleet_management.event.get_events"
 | 
				
			||||||
 | 
					# }
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# each overriding function accepts a `data` argument;
 | 
				
			||||||
 | 
					# generated from the base implementation of the doctype dashboard,
 | 
				
			||||||
 | 
					# along with any modifications made in other Frappe apps
 | 
				
			||||||
 | 
					# override_doctype_dashboards = {
 | 
				
			||||||
 | 
					#	"Task": "fleet_management.task.get_dashboard_data"
 | 
				
			||||||
 | 
					# }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# exempt linked doctypes from being automatically cancelled
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# auto_cancel_exempted_doctypes = ["Auto Repeat"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Ignore links to specified DocTypes when deleting documents
 | 
				
			||||||
 | 
					# -----------------------------------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# ignore_links_on_delete = ["Communication", "ToDo"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Request Events
 | 
				
			||||||
 | 
					# ----------------
 | 
				
			||||||
 | 
					# before_request = ["fleet_management.utils.before_request"]
 | 
				
			||||||
 | 
					# after_request = ["fleet_management.utils.after_request"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Job Events
 | 
				
			||||||
 | 
					# ----------
 | 
				
			||||||
 | 
					# before_job = ["fleet_management.utils.before_job"]
 | 
				
			||||||
 | 
					# after_job = ["fleet_management.utils.after_job"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# User Data Protection
 | 
				
			||||||
 | 
					# --------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# user_data_fields = [
 | 
				
			||||||
 | 
					#	{
 | 
				
			||||||
 | 
					#		"doctype": "{doctype_1}",
 | 
				
			||||||
 | 
					#		"filter_by": "{filter_by}",
 | 
				
			||||||
 | 
					#		"redact_fields": ["{field_1}", "{field_2}"],
 | 
				
			||||||
 | 
					#		"partial": 1,
 | 
				
			||||||
 | 
					#	},
 | 
				
			||||||
 | 
					#	{
 | 
				
			||||||
 | 
					#		"doctype": "{doctype_2}",
 | 
				
			||||||
 | 
					#		"filter_by": "{filter_by}",
 | 
				
			||||||
 | 
					#		"partial": 1,
 | 
				
			||||||
 | 
					#	},
 | 
				
			||||||
 | 
					#	{
 | 
				
			||||||
 | 
					#		"doctype": "{doctype_3}",
 | 
				
			||||||
 | 
					#		"strict": False,
 | 
				
			||||||
 | 
					#	},
 | 
				
			||||||
 | 
					#	{
 | 
				
			||||||
 | 
					#		"doctype": "{doctype_4}"
 | 
				
			||||||
 | 
					#	}
 | 
				
			||||||
 | 
					# ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Authentication and authorization
 | 
				
			||||||
 | 
					# --------------------------------
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# auth_hooks = [
 | 
				
			||||||
 | 
					#	"fleet_management.auth.validate"
 | 
				
			||||||
 | 
					# ]
 | 
				
			||||||
							
								
								
									
										1
									
								
								fleet_management/modules.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								fleet_management/modules.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					Fleet Management
 | 
				
			||||||
							
								
								
									
										0
									
								
								fleet_management/patches.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								fleet_management/patches.txt
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								fleet_management/public/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								fleet_management/public/.gitkeep
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								fleet_management/templates/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								fleet_management/templates/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										0
									
								
								fleet_management/templates/pages/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								fleet_management/templates/pages/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
								
								
									
										1
									
								
								license.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								license.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					License: GPLv3
 | 
				
			||||||
							
								
								
									
										1
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								requirements.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					# frappe -- https://github.com/frappe/frappe is installed via 'bench init'
 | 
				
			||||||
							
								
								
									
										19
									
								
								setup.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								setup.py
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,19 @@
 | 
				
			|||||||
 | 
					from setuptools import setup, find_packages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					with open("requirements.txt") as f:
 | 
				
			||||||
 | 
						install_requires = f.read().strip().split("\n")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# get version from __version__ variable in fleet_management/__init__.py
 | 
				
			||||||
 | 
					from fleet_management import __version__ as version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					setup(
 | 
				
			||||||
 | 
						name="fleet_management",
 | 
				
			||||||
 | 
						version=version,
 | 
				
			||||||
 | 
						description="Manage the Fleet of your Company",
 | 
				
			||||||
 | 
						author="itsdave GmbH",
 | 
				
			||||||
 | 
						author_email="dev@itsdave.de",
 | 
				
			||||||
 | 
						packages=find_packages(),
 | 
				
			||||||
 | 
						zip_safe=False,
 | 
				
			||||||
 | 
						include_package_data=True,
 | 
				
			||||||
 | 
						install_requires=install_requires
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user