style: bulk format code with black
v13 port because otherwise backports will result in conflicts always
This commit is contained in:
687
erpnext/hooks.py
687
erpnext/hooks.py
@@ -1,4 +1,3 @@
|
||||
|
||||
from frappe import _
|
||||
|
||||
app_name = "erpnext"
|
||||
@@ -13,7 +12,7 @@ source_link = "https://github.com/frappe/erpnext"
|
||||
app_logo_url = "/assets/erpnext/images/erpnext-logo.svg"
|
||||
|
||||
|
||||
develop_version = '13.x.x-develop'
|
||||
develop_version = "13.x.x-develop"
|
||||
|
||||
app_include_js = "/assets/js/erpnext.min.js"
|
||||
app_include_css = "/assets/css/erpnext.css"
|
||||
@@ -25,12 +24,10 @@ doctype_js = {
|
||||
"Communication": "public/js/communication.js",
|
||||
"Event": "public/js/event.js",
|
||||
"Newsletter": "public/js/newsletter.js",
|
||||
"Contact": "public/js/contact.js"
|
||||
"Contact": "public/js/contact.js",
|
||||
}
|
||||
|
||||
override_doctype_class = {
|
||||
'Address': 'erpnext.accounts.custom.address.ERPNextAddress'
|
||||
}
|
||||
override_doctype_class = {"Address": "erpnext.accounts.custom.address.ERPNextAddress"}
|
||||
|
||||
welcome_email = "erpnext.setup.utils.welcome_email"
|
||||
|
||||
@@ -51,146 +48,266 @@ additional_print_settings = "erpnext.controllers.print_settings.get_print_settin
|
||||
|
||||
on_session_creation = [
|
||||
"erpnext.portal.utils.create_customer_or_supplier",
|
||||
"erpnext.e_commerce.shopping_cart.utils.set_cart_count"
|
||||
"erpnext.e_commerce.shopping_cart.utils.set_cart_count",
|
||||
]
|
||||
on_logout = "erpnext.e_commerce.shopping_cart.utils.clear_cart_count"
|
||||
|
||||
treeviews = ['Account', 'Cost Center', 'Warehouse', 'Item Group', 'Customer Group', 'Sales Person', 'Territory', 'Assessment Group', 'Department']
|
||||
treeviews = [
|
||||
"Account",
|
||||
"Cost Center",
|
||||
"Warehouse",
|
||||
"Item Group",
|
||||
"Customer Group",
|
||||
"Sales Person",
|
||||
"Territory",
|
||||
"Assessment Group",
|
||||
"Department",
|
||||
]
|
||||
|
||||
# website
|
||||
update_website_context = ["erpnext.e_commerce.shopping_cart.utils.update_website_context", "erpnext.education.doctype.education_settings.education_settings.update_website_context"]
|
||||
update_website_context = [
|
||||
"erpnext.e_commerce.shopping_cart.utils.update_website_context",
|
||||
"erpnext.education.doctype.education_settings.education_settings.update_website_context",
|
||||
]
|
||||
my_account_context = "erpnext.e_commerce.shopping_cart.utils.update_my_account_context"
|
||||
webform_list_context = "erpnext.controllers.website_list_for_contact.get_webform_list_context"
|
||||
|
||||
calendars = ["Task", "Work Order", "Leave Application", "Sales Order", "Holiday List", "Course Schedule"]
|
||||
calendars = [
|
||||
"Task",
|
||||
"Work Order",
|
||||
"Leave Application",
|
||||
"Sales Order",
|
||||
"Holiday List",
|
||||
"Course Schedule",
|
||||
]
|
||||
|
||||
domains = {
|
||||
'Agriculture': 'erpnext.domains.agriculture',
|
||||
'Distribution': 'erpnext.domains.distribution',
|
||||
'Education': 'erpnext.domains.education',
|
||||
'Healthcare': 'erpnext.domains.healthcare',
|
||||
'Hospitality': 'erpnext.domains.hospitality',
|
||||
'Manufacturing': 'erpnext.domains.manufacturing',
|
||||
'Non Profit': 'erpnext.domains.non_profit',
|
||||
'Retail': 'erpnext.domains.retail',
|
||||
'Services': 'erpnext.domains.services',
|
||||
"Agriculture": "erpnext.domains.agriculture",
|
||||
"Distribution": "erpnext.domains.distribution",
|
||||
"Education": "erpnext.domains.education",
|
||||
"Healthcare": "erpnext.domains.healthcare",
|
||||
"Hospitality": "erpnext.domains.hospitality",
|
||||
"Manufacturing": "erpnext.domains.manufacturing",
|
||||
"Non Profit": "erpnext.domains.non_profit",
|
||||
"Retail": "erpnext.domains.retail",
|
||||
"Services": "erpnext.domains.services",
|
||||
}
|
||||
|
||||
website_generators = ["Item Group", "Website Item", "BOM", "Sales Partner",
|
||||
"Job Opening", "Student Admission"]
|
||||
website_generators = [
|
||||
"Item Group",
|
||||
"Website Item",
|
||||
"BOM",
|
||||
"Sales Partner",
|
||||
"Job Opening",
|
||||
"Student Admission",
|
||||
]
|
||||
|
||||
website_context = {
|
||||
"favicon": "/assets/erpnext/images/erpnext-favicon.svg",
|
||||
"splash_image": "/assets/erpnext/images/erpnext-logo.svg"
|
||||
"favicon": "/assets/erpnext/images/erpnext-favicon.svg",
|
||||
"splash_image": "/assets/erpnext/images/erpnext-logo.svg",
|
||||
}
|
||||
|
||||
website_route_rules = [
|
||||
{"from_route": "/orders", "to_route": "Sales Order"},
|
||||
{"from_route": "/orders/<path:name>", "to_route": "order",
|
||||
"defaults": {
|
||||
"doctype": "Sales Order",
|
||||
"parents": [{"label": _("Orders"), "route": "orders"}]
|
||||
}
|
||||
{
|
||||
"from_route": "/orders/<path:name>",
|
||||
"to_route": "order",
|
||||
"defaults": {"doctype": "Sales Order", "parents": [{"label": _("Orders"), "route": "orders"}]},
|
||||
},
|
||||
{"from_route": "/invoices", "to_route": "Sales Invoice"},
|
||||
{"from_route": "/invoices/<path:name>", "to_route": "order",
|
||||
{
|
||||
"from_route": "/invoices/<path:name>",
|
||||
"to_route": "order",
|
||||
"defaults": {
|
||||
"doctype": "Sales Invoice",
|
||||
"parents": [{"label": _("Invoices"), "route": "invoices"}]
|
||||
}
|
||||
"parents": [{"label": _("Invoices"), "route": "invoices"}],
|
||||
},
|
||||
},
|
||||
{"from_route": "/supplier-quotations", "to_route": "Supplier Quotation"},
|
||||
{"from_route": "/supplier-quotations/<path:name>", "to_route": "order",
|
||||
{
|
||||
"from_route": "/supplier-quotations/<path:name>",
|
||||
"to_route": "order",
|
||||
"defaults": {
|
||||
"doctype": "Supplier Quotation",
|
||||
"parents": [{"label": _("Supplier Quotation"), "route": "supplier-quotations"}]
|
||||
}
|
||||
"parents": [{"label": _("Supplier Quotation"), "route": "supplier-quotations"}],
|
||||
},
|
||||
},
|
||||
{"from_route": "/purchase-orders", "to_route": "Purchase Order"},
|
||||
{"from_route": "/purchase-orders/<path:name>", "to_route": "order",
|
||||
{
|
||||
"from_route": "/purchase-orders/<path:name>",
|
||||
"to_route": "order",
|
||||
"defaults": {
|
||||
"doctype": "Purchase Order",
|
||||
"parents": [{"label": _("Purchase Order"), "route": "purchase-orders"}]
|
||||
}
|
||||
"parents": [{"label": _("Purchase Order"), "route": "purchase-orders"}],
|
||||
},
|
||||
},
|
||||
{"from_route": "/purchase-invoices", "to_route": "Purchase Invoice"},
|
||||
{"from_route": "/purchase-invoices/<path:name>", "to_route": "order",
|
||||
{
|
||||
"from_route": "/purchase-invoices/<path:name>",
|
||||
"to_route": "order",
|
||||
"defaults": {
|
||||
"doctype": "Purchase Invoice",
|
||||
"parents": [{"label": _("Purchase Invoice"), "route": "purchase-invoices"}]
|
||||
}
|
||||
"parents": [{"label": _("Purchase Invoice"), "route": "purchase-invoices"}],
|
||||
},
|
||||
},
|
||||
{"from_route": "/quotations", "to_route": "Quotation"},
|
||||
{"from_route": "/quotations/<path:name>", "to_route": "order",
|
||||
{
|
||||
"from_route": "/quotations/<path:name>",
|
||||
"to_route": "order",
|
||||
"defaults": {
|
||||
"doctype": "Quotation",
|
||||
"parents": [{"label": _("Quotations"), "route": "quotations"}]
|
||||
}
|
||||
"parents": [{"label": _("Quotations"), "route": "quotations"}],
|
||||
},
|
||||
},
|
||||
{"from_route": "/shipments", "to_route": "Delivery Note"},
|
||||
{"from_route": "/shipments/<path:name>", "to_route": "order",
|
||||
{
|
||||
"from_route": "/shipments/<path:name>",
|
||||
"to_route": "order",
|
||||
"defaults": {
|
||||
"doctype": "Delivery Note",
|
||||
"parents": [{"label": _("Shipments"), "route": "shipments"}]
|
||||
}
|
||||
"parents": [{"label": _("Shipments"), "route": "shipments"}],
|
||||
},
|
||||
},
|
||||
{"from_route": "/rfq", "to_route": "Request for Quotation"},
|
||||
{"from_route": "/rfq/<path:name>", "to_route": "rfq",
|
||||
{
|
||||
"from_route": "/rfq/<path:name>",
|
||||
"to_route": "rfq",
|
||||
"defaults": {
|
||||
"doctype": "Request for Quotation",
|
||||
"parents": [{"label": _("Request for Quotation"), "route": "rfq"}]
|
||||
}
|
||||
"parents": [{"label": _("Request for Quotation"), "route": "rfq"}],
|
||||
},
|
||||
},
|
||||
{"from_route": "/addresses", "to_route": "Address"},
|
||||
{"from_route": "/addresses/<path:name>", "to_route": "addresses",
|
||||
"defaults": {
|
||||
"doctype": "Address",
|
||||
"parents": [{"label": _("Addresses"), "route": "addresses"}]
|
||||
}
|
||||
{
|
||||
"from_route": "/addresses/<path:name>",
|
||||
"to_route": "addresses",
|
||||
"defaults": {"doctype": "Address", "parents": [{"label": _("Addresses"), "route": "addresses"}]},
|
||||
},
|
||||
{"from_route": "/jobs", "to_route": "Job Opening"},
|
||||
{"from_route": "/admissions", "to_route": "Student Admission"},
|
||||
{"from_route": "/boms", "to_route": "BOM"},
|
||||
{"from_route": "/timesheets", "to_route": "Timesheet"},
|
||||
{"from_route": "/material-requests", "to_route": "Material Request"},
|
||||
{"from_route": "/material-requests/<path:name>", "to_route": "material_request_info",
|
||||
{
|
||||
"from_route": "/material-requests/<path:name>",
|
||||
"to_route": "material_request_info",
|
||||
"defaults": {
|
||||
"doctype": "Material Request",
|
||||
"parents": [{"label": _("Material Request"), "route": "material-requests"}]
|
||||
}
|
||||
"parents": [{"label": _("Material Request"), "route": "material-requests"}],
|
||||
},
|
||||
},
|
||||
{"from_route": "/project", "to_route": "Project"}
|
||||
{"from_route": "/project", "to_route": "Project"},
|
||||
]
|
||||
|
||||
standard_portal_menu_items = [
|
||||
{"title": _("Personal Details"), "route": "/personal-details", "reference_doctype": "Patient", "role": "Patient"},
|
||||
{
|
||||
"title": _("Personal Details"),
|
||||
"route": "/personal-details",
|
||||
"reference_doctype": "Patient",
|
||||
"role": "Patient",
|
||||
},
|
||||
{"title": _("Projects"), "route": "/project", "reference_doctype": "Project"},
|
||||
{"title": _("Request for Quotations"), "route": "/rfq", "reference_doctype": "Request for Quotation", "role": "Supplier"},
|
||||
{"title": _("Supplier Quotation"), "route": "/supplier-quotations", "reference_doctype": "Supplier Quotation", "role": "Supplier"},
|
||||
{"title": _("Purchase Orders"), "route": "/purchase-orders", "reference_doctype": "Purchase Order", "role": "Supplier"},
|
||||
{"title": _("Purchase Invoices"), "route": "/purchase-invoices", "reference_doctype": "Purchase Invoice", "role": "Supplier"},
|
||||
{"title": _("Quotations"), "route": "/quotations", "reference_doctype": "Quotation", "role":"Customer"},
|
||||
{"title": _("Orders"), "route": "/orders", "reference_doctype": "Sales Order", "role":"Customer"},
|
||||
{"title": _("Invoices"), "route": "/invoices", "reference_doctype": "Sales Invoice", "role":"Customer"},
|
||||
{"title": _("Shipments"), "route": "/shipments", "reference_doctype": "Delivery Note", "role":"Customer"},
|
||||
{"title": _("Issues"), "route": "/issues", "reference_doctype": "Issue", "role":"Customer"},
|
||||
{
|
||||
"title": _("Request for Quotations"),
|
||||
"route": "/rfq",
|
||||
"reference_doctype": "Request for Quotation",
|
||||
"role": "Supplier",
|
||||
},
|
||||
{
|
||||
"title": _("Supplier Quotation"),
|
||||
"route": "/supplier-quotations",
|
||||
"reference_doctype": "Supplier Quotation",
|
||||
"role": "Supplier",
|
||||
},
|
||||
{
|
||||
"title": _("Purchase Orders"),
|
||||
"route": "/purchase-orders",
|
||||
"reference_doctype": "Purchase Order",
|
||||
"role": "Supplier",
|
||||
},
|
||||
{
|
||||
"title": _("Purchase Invoices"),
|
||||
"route": "/purchase-invoices",
|
||||
"reference_doctype": "Purchase Invoice",
|
||||
"role": "Supplier",
|
||||
},
|
||||
{
|
||||
"title": _("Quotations"),
|
||||
"route": "/quotations",
|
||||
"reference_doctype": "Quotation",
|
||||
"role": "Customer",
|
||||
},
|
||||
{
|
||||
"title": _("Orders"),
|
||||
"route": "/orders",
|
||||
"reference_doctype": "Sales Order",
|
||||
"role": "Customer",
|
||||
},
|
||||
{
|
||||
"title": _("Invoices"),
|
||||
"route": "/invoices",
|
||||
"reference_doctype": "Sales Invoice",
|
||||
"role": "Customer",
|
||||
},
|
||||
{
|
||||
"title": _("Shipments"),
|
||||
"route": "/shipments",
|
||||
"reference_doctype": "Delivery Note",
|
||||
"role": "Customer",
|
||||
},
|
||||
{"title": _("Issues"), "route": "/issues", "reference_doctype": "Issue", "role": "Customer"},
|
||||
{"title": _("Addresses"), "route": "/addresses", "reference_doctype": "Address"},
|
||||
{"title": _("Timesheets"), "route": "/timesheets", "reference_doctype": "Timesheet", "role":"Customer"},
|
||||
{"title": _("Lab Test"), "route": "/lab-test", "reference_doctype": "Lab Test", "role":"Patient"},
|
||||
{"title": _("Prescription"), "route": "/prescription", "reference_doctype": "Patient Encounter", "role":"Patient"},
|
||||
{"title": _("Patient Appointment"), "route": "/patient-appointments", "reference_doctype": "Patient Appointment", "role":"Patient"},
|
||||
{"title": _("Fees"), "route": "/fees", "reference_doctype": "Fees", "role":"Student"},
|
||||
{
|
||||
"title": _("Timesheets"),
|
||||
"route": "/timesheets",
|
||||
"reference_doctype": "Timesheet",
|
||||
"role": "Customer",
|
||||
},
|
||||
{
|
||||
"title": _("Lab Test"),
|
||||
"route": "/lab-test",
|
||||
"reference_doctype": "Lab Test",
|
||||
"role": "Patient",
|
||||
},
|
||||
{
|
||||
"title": _("Prescription"),
|
||||
"route": "/prescription",
|
||||
"reference_doctype": "Patient Encounter",
|
||||
"role": "Patient",
|
||||
},
|
||||
{
|
||||
"title": _("Patient Appointment"),
|
||||
"route": "/patient-appointments",
|
||||
"reference_doctype": "Patient Appointment",
|
||||
"role": "Patient",
|
||||
},
|
||||
{"title": _("Fees"), "route": "/fees", "reference_doctype": "Fees", "role": "Student"},
|
||||
{"title": _("Newsletter"), "route": "/newsletters", "reference_doctype": "Newsletter"},
|
||||
{"title": _("Admission"), "route": "/admissions", "reference_doctype": "Student Admission", "role": "Student"},
|
||||
{"title": _("Certification"), "route": "/certification", "reference_doctype": "Certification Application", "role": "Non Profit Portal User"},
|
||||
{"title": _("Material Request"), "route": "/material-requests", "reference_doctype": "Material Request", "role": "Customer"},
|
||||
{
|
||||
"title": _("Admission"),
|
||||
"route": "/admissions",
|
||||
"reference_doctype": "Student Admission",
|
||||
"role": "Student",
|
||||
},
|
||||
{
|
||||
"title": _("Certification"),
|
||||
"route": "/certification",
|
||||
"reference_doctype": "Certification Application",
|
||||
"role": "Non Profit Portal User",
|
||||
},
|
||||
{
|
||||
"title": _("Material Request"),
|
||||
"route": "/material-requests",
|
||||
"reference_doctype": "Material Request",
|
||||
"role": "Customer",
|
||||
},
|
||||
{"title": _("Appointment Booking"), "route": "/book_appointment"},
|
||||
]
|
||||
|
||||
default_roles = [
|
||||
{'role': 'Customer', 'doctype':'Contact', 'email_field': 'email_id'},
|
||||
{'role': 'Supplier', 'doctype':'Contact', 'email_field': 'email_id'},
|
||||
{'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'},
|
||||
{"role": "Customer", "doctype": "Contact", "email_field": "email_id"},
|
||||
{"role": "Supplier", "doctype": "Contact", "email_field": "email_id"},
|
||||
{"role": "Student", "doctype": "Student", "email_field": "student_email_id"},
|
||||
]
|
||||
|
||||
sounds = [
|
||||
@@ -198,9 +315,7 @@ sounds = [
|
||||
{"name": "call-disconnect", "src": "/assets/erpnext/sounds/call-disconnect.mp3", "volume": 0.2},
|
||||
]
|
||||
|
||||
has_upload_permission = {
|
||||
"Employee": "erpnext.hr.doctype.employee.employee.has_upload_permission"
|
||||
}
|
||||
has_upload_permission = {"Employee": "erpnext.hr.doctype.employee.employee.has_upload_permission"}
|
||||
|
||||
has_website_permission = {
|
||||
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
||||
@@ -216,7 +331,7 @@ has_website_permission = {
|
||||
"Lab Test": "erpnext.healthcare.web_form.lab_test.lab_test.has_website_permission",
|
||||
"Patient Encounter": "erpnext.healthcare.web_form.prescription.prescription.has_website_permission",
|
||||
"Patient Appointment": "erpnext.healthcare.web_form.patient_appointments.patient_appointments.has_website_permission",
|
||||
"Patient": "erpnext.healthcare.web_form.personal_details.personal_details.has_website_permission"
|
||||
"Patient": "erpnext.healthcare.web_form.personal_details.personal_details.has_website_permission",
|
||||
}
|
||||
|
||||
dump_report_map = "erpnext.startup.report_data_map.data_map"
|
||||
@@ -225,112 +340,115 @@ before_tests = "erpnext.setup.utils.before_tests"
|
||||
|
||||
standard_queries = {
|
||||
"Customer": "erpnext.selling.doctype.customer.customer.get_customer_list",
|
||||
"Healthcare Practitioner": "erpnext.healthcare.doctype.healthcare_practitioner.healthcare_practitioner.get_practitioner_list"
|
||||
"Healthcare Practitioner": "erpnext.healthcare.doctype.healthcare_practitioner.healthcare_practitioner.get_practitioner_list",
|
||||
}
|
||||
|
||||
doc_events = {
|
||||
"*": {
|
||||
"on_submit": "erpnext.healthcare.doctype.patient_history_settings.patient_history_settings.create_medical_record",
|
||||
"on_update_after_submit": "erpnext.healthcare.doctype.patient_history_settings.patient_history_settings.update_medical_record",
|
||||
"on_cancel": "erpnext.healthcare.doctype.patient_history_settings.patient_history_settings.delete_medical_record"
|
||||
"on_cancel": "erpnext.healthcare.doctype.patient_history_settings.patient_history_settings.delete_medical_record",
|
||||
},
|
||||
"Stock Entry": {
|
||||
"on_submit": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty",
|
||||
"on_cancel": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty"
|
||||
"on_cancel": "erpnext.stock.doctype.material_request.material_request.update_completed_and_requested_qty",
|
||||
},
|
||||
"User": {
|
||||
"after_insert": "frappe.contacts.doctype.contact.contact.update_contact",
|
||||
"validate": "erpnext.hr.doctype.employee.employee.validate_employee_role",
|
||||
"on_update": ["erpnext.hr.doctype.employee.employee.update_user_permissions",
|
||||
"erpnext.portal.utils.set_default_role"]
|
||||
},
|
||||
"Communication": {
|
||||
"on_update": [
|
||||
"erpnext.support.doctype.issue.issue.set_first_response_time"
|
||||
]
|
||||
"erpnext.hr.doctype.employee.employee.update_user_permissions",
|
||||
"erpnext.portal.utils.set_default_role",
|
||||
],
|
||||
},
|
||||
"Communication": {"on_update": ["erpnext.support.doctype.issue.issue.set_first_response_time"]},
|
||||
"Sales Taxes and Charges Template": {
|
||||
"on_update": "erpnext.e_commerce.doctype.e_commerce_settings.e_commerce_settings.validate_cart_settings"
|
||||
},
|
||||
"Tax Category": {
|
||||
"validate": "erpnext.regional.india.utils.validate_tax_category"
|
||||
},
|
||||
"Tax Category": {"validate": "erpnext.regional.india.utils.validate_tax_category"},
|
||||
"Sales Invoice": {
|
||||
"on_submit": [
|
||||
"erpnext.regional.create_transaction_log",
|
||||
"erpnext.regional.italy.utils.sales_invoice_on_submit",
|
||||
"erpnext.regional.saudi_arabia.utils.create_qr_code",
|
||||
"erpnext.erpnext_integrations.taxjar_integration.create_transaction"
|
||||
"erpnext.erpnext_integrations.taxjar_integration.create_transaction",
|
||||
],
|
||||
"on_cancel": [
|
||||
"erpnext.regional.italy.utils.sales_invoice_on_cancel",
|
||||
"erpnext.erpnext_integrations.taxjar_integration.delete_transaction",
|
||||
"erpnext.regional.saudi_arabia.utils.delete_qr_code_file"
|
||||
"erpnext.regional.saudi_arabia.utils.delete_qr_code_file",
|
||||
],
|
||||
"on_trash": "erpnext.regional.check_deletion_permission",
|
||||
"validate": [
|
||||
"erpnext.regional.india.utils.validate_document_name",
|
||||
"erpnext.regional.india.utils.update_taxable_values"
|
||||
]
|
||||
},
|
||||
"POS Invoice": {
|
||||
"on_submit": ["erpnext.regional.saudi_arabia.utils.create_qr_code"]
|
||||
"erpnext.regional.india.utils.update_taxable_values",
|
||||
],
|
||||
},
|
||||
"POS Invoice": {"on_submit": ["erpnext.regional.saudi_arabia.utils.create_qr_code"]},
|
||||
"Purchase Invoice": {
|
||||
"validate": [
|
||||
"erpnext.regional.india.utils.validate_reverse_charge_transaction",
|
||||
"erpnext.regional.india.utils.update_itc_availed_fields",
|
||||
"erpnext.regional.united_arab_emirates.utils.update_grand_total_for_rcm",
|
||||
"erpnext.regional.united_arab_emirates.utils.validate_returns",
|
||||
"erpnext.regional.india.utils.update_taxable_values"
|
||||
"erpnext.regional.india.utils.update_taxable_values",
|
||||
]
|
||||
},
|
||||
"Payment Entry": {
|
||||
"validate": "erpnext.regional.india.utils.update_place_of_supply",
|
||||
"on_submit": ["erpnext.regional.create_transaction_log", "erpnext.accounts.doctype.payment_request.payment_request.update_payment_req_status", "erpnext.accounts.doctype.dunning.dunning.resolve_dunning"],
|
||||
"on_trash": "erpnext.regional.check_deletion_permission"
|
||||
"on_submit": [
|
||||
"erpnext.regional.create_transaction_log",
|
||||
"erpnext.accounts.doctype.payment_request.payment_request.update_payment_req_status",
|
||||
"erpnext.accounts.doctype.dunning.dunning.resolve_dunning",
|
||||
],
|
||||
"on_trash": "erpnext.regional.check_deletion_permission",
|
||||
},
|
||||
'Address': {
|
||||
'validate': [
|
||||
'erpnext.regional.india.utils.validate_gstin_for_india',
|
||||
'erpnext.regional.italy.utils.set_state_code',
|
||||
'erpnext.regional.india.utils.update_gst_category',
|
||||
'erpnext.healthcare.utils.update_address_links'
|
||||
"Address": {
|
||||
"validate": [
|
||||
"erpnext.regional.india.utils.validate_gstin_for_india",
|
||||
"erpnext.regional.italy.utils.set_state_code",
|
||||
"erpnext.regional.india.utils.update_gst_category",
|
||||
"erpnext.healthcare.utils.update_address_links",
|
||||
],
|
||||
},
|
||||
'Supplier': {
|
||||
'validate': 'erpnext.regional.india.utils.validate_pan_for_india'
|
||||
},
|
||||
('Sales Invoice', 'Sales Order', 'Delivery Note', 'Purchase Invoice', 'Purchase Order', 'Purchase Receipt'): {
|
||||
'validate': ['erpnext.regional.india.utils.set_place_of_supply']
|
||||
},
|
||||
"Supplier": {"validate": "erpnext.regional.india.utils.validate_pan_for_india"},
|
||||
(
|
||||
"Sales Invoice",
|
||||
"Sales Order",
|
||||
"Delivery Note",
|
||||
"Purchase Invoice",
|
||||
"Purchase Order",
|
||||
"Purchase Receipt",
|
||||
): {"validate": ["erpnext.regional.india.utils.set_place_of_supply"]},
|
||||
"Contact": {
|
||||
"on_trash": "erpnext.support.doctype.issue.issue.update_issue",
|
||||
"after_insert": "erpnext.telephony.doctype.call_log.call_log.link_existing_conversations",
|
||||
"validate": ["erpnext.crm.utils.update_lead_phone_numbers", "erpnext.healthcare.utils.update_patient_email_and_phone_numbers"]
|
||||
"validate": [
|
||||
"erpnext.crm.utils.update_lead_phone_numbers",
|
||||
"erpnext.healthcare.utils.update_patient_email_and_phone_numbers",
|
||||
],
|
||||
},
|
||||
"Email Unsubscribe": {
|
||||
"after_insert": "erpnext.crm.doctype.email_campaign.email_campaign.unsubscribe_recipient"
|
||||
},
|
||||
('Quotation', 'Sales Order', 'Sales Invoice'): {
|
||||
'validate': ["erpnext.erpnext_integrations.taxjar_integration.set_sales_tax"]
|
||||
("Quotation", "Sales Order", "Sales Invoice"): {
|
||||
"validate": ["erpnext.erpnext_integrations.taxjar_integration.set_sales_tax"]
|
||||
},
|
||||
"Company": {
|
||||
"on_trash": ["erpnext.regional.india.utils.delete_gst_settings_for_company",
|
||||
"erpnext.regional.saudi_arabia.utils.delete_vat_settings_for_company"]
|
||||
"on_trash": [
|
||||
"erpnext.regional.india.utils.delete_gst_settings_for_company",
|
||||
"erpnext.regional.saudi_arabia.utils.delete_vat_settings_for_company",
|
||||
]
|
||||
},
|
||||
"Integration Request": {
|
||||
"validate": "erpnext.accounts.doctype.payment_request.payment_request.validate_payment"
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
# On cancel event Payment Entry will be exempted and all linked submittable doctype will get cancelled.
|
||||
# to maintain data integrity we exempted payment entry. it will un-link when sales invoice get cancelled.
|
||||
# if payment entry not in auto cancel exempted doctypes it will cancel payment entry.
|
||||
auto_cancel_exempted_doctypes= [
|
||||
"Payment Entry",
|
||||
"Inpatient Medication Entry"
|
||||
]
|
||||
auto_cancel_exempted_doctypes = ["Payment Entry", "Inpatient Medication Entry"]
|
||||
|
||||
after_migrate = ["erpnext.setup.install.update_select_perm_after_install"]
|
||||
|
||||
@@ -344,10 +462,10 @@ scheduler_events = {
|
||||
"erpnext.projects.doctype.project.project.project_status_update_reminder",
|
||||
"erpnext.healthcare.doctype.patient_appointment.patient_appointment.send_appointment_reminder",
|
||||
"erpnext.hr.doctype.interview.interview.send_interview_reminder",
|
||||
"erpnext.crm.doctype.social_media_post.social_media_post.process_scheduled_social_media_posts"
|
||||
"erpnext.crm.doctype.social_media_post.social_media_post.process_scheduled_social_media_posts",
|
||||
],
|
||||
"hourly": [
|
||||
'erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.trigger_emails',
|
||||
"erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.trigger_emails",
|
||||
"erpnext.accounts.doctype.subscription.subscription.process_all",
|
||||
"erpnext.erpnext_integrations.doctype.amazon_mws_settings.amazon_mws_settings.schedule_get_order_details",
|
||||
"erpnext.accounts.doctype.gl_entry.gl_entry.rename_gle_sle_docs",
|
||||
@@ -356,7 +474,7 @@ scheduler_events = {
|
||||
"erpnext.projects.doctype.project.project.collect_project_status",
|
||||
"erpnext.hr.doctype.shift_type.shift_type.process_auto_attendance_for_all_shifts",
|
||||
"erpnext.support.doctype.issue.issue.set_service_level_agreement_variance",
|
||||
"erpnext.erpnext_integrations.connectors.shopify_connection.sync_old_orders"
|
||||
"erpnext.erpnext_integrations.connectors.shopify_connection.sync_old_orders",
|
||||
],
|
||||
"hourly_long": [
|
||||
"erpnext.stock.doctype.repost_item_valuation.repost_item_valuation.repost_entries"
|
||||
@@ -389,7 +507,7 @@ scheduler_events = {
|
||||
"erpnext.buying.doctype.supplier_quotation.supplier_quotation.set_expired_status",
|
||||
"erpnext.accounts.doctype.process_statement_of_accounts.process_statement_of_accounts.send_auto_email",
|
||||
"erpnext.non_profit.doctype.membership.membership.set_expired_status",
|
||||
"erpnext.hr.doctype.interview.interview.send_daily_feedback_reminder"
|
||||
"erpnext.hr.doctype.interview.interview.send_daily_feedback_reminder",
|
||||
],
|
||||
"daily_long": [
|
||||
"erpnext.setup.doctype.email_digest.email_digest.send",
|
||||
@@ -399,18 +517,14 @@ scheduler_events = {
|
||||
"erpnext.hr.utils.allocate_earned_leaves",
|
||||
"erpnext.loan_management.doctype.process_loan_security_shortfall.process_loan_security_shortfall.create_process_loan_security_shortfall",
|
||||
"erpnext.loan_management.doctype.process_loan_interest_accrual.process_loan_interest_accrual.process_loan_interest_accrual_for_term_loans",
|
||||
"erpnext.crm.doctype.lead.lead.daily_open_lead"
|
||||
],
|
||||
"weekly": [
|
||||
"erpnext.hr.doctype.employee.employee_reminders.send_reminders_in_advance_weekly"
|
||||
],
|
||||
"monthly": [
|
||||
"erpnext.hr.doctype.employee.employee_reminders.send_reminders_in_advance_monthly"
|
||||
"erpnext.crm.doctype.lead.lead.daily_open_lead",
|
||||
],
|
||||
"weekly": ["erpnext.hr.doctype.employee.employee_reminders.send_reminders_in_advance_weekly"],
|
||||
"monthly": ["erpnext.hr.doctype.employee.employee_reminders.send_reminders_in_advance_monthly"],
|
||||
"monthly_long": [
|
||||
"erpnext.accounts.deferred_revenue.process_deferred_accounting",
|
||||
"erpnext.loan_management.doctype.process_loan_interest_accrual.process_loan_interest_accrual.process_loan_interest_accrual_for_demand_loans"
|
||||
]
|
||||
"erpnext.loan_management.doctype.process_loan_interest_accrual.process_loan_interest_accrual.process_loan_interest_accrual_for_demand_loans",
|
||||
],
|
||||
}
|
||||
|
||||
email_brand_image = "assets/erpnext/images/erpnext-logo.jpg"
|
||||
@@ -429,63 +543,96 @@ get_translated_dict = {
|
||||
}
|
||||
|
||||
bot_parsers = [
|
||||
'erpnext.utilities.bot.FindItemBot',
|
||||
"erpnext.utilities.bot.FindItemBot",
|
||||
]
|
||||
|
||||
get_site_info = 'erpnext.utilities.get_site_info'
|
||||
get_site_info = "erpnext.utilities.get_site_info"
|
||||
|
||||
payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account"
|
||||
|
||||
communication_doctypes = ["Customer", "Supplier"]
|
||||
|
||||
accounting_dimension_doctypes = ["GL Entry", "Sales Invoice", "Purchase Invoice", "Payment Entry", "Asset",
|
||||
"Expense Claim", "Expense Claim Detail", "Expense Taxes and Charges", "Stock Entry", "Budget", "Payroll Entry", "Delivery Note",
|
||||
"Sales Invoice Item", "Purchase Invoice Item", "Purchase Order Item", "Journal Entry Account", "Material Request Item", "Delivery Note Item",
|
||||
"Purchase Receipt Item", "Stock Entry Detail", "Payment Entry Deduction", "Sales Taxes and Charges", "Purchase Taxes and Charges", "Shipping Rule",
|
||||
"Landed Cost Item", "Asset Value Adjustment", "Loyalty Program", "Fee Schedule", "Fee Structure", "Stock Reconciliation",
|
||||
"Travel Request", "Fees", "POS Profile", "Opening Invoice Creation Tool", "Opening Invoice Creation Tool Item", "Subscription",
|
||||
"Subscription Plan", "POS Invoice", "POS Invoice Item"
|
||||
accounting_dimension_doctypes = [
|
||||
"GL Entry",
|
||||
"Sales Invoice",
|
||||
"Purchase Invoice",
|
||||
"Payment Entry",
|
||||
"Asset",
|
||||
"Expense Claim",
|
||||
"Expense Claim Detail",
|
||||
"Expense Taxes and Charges",
|
||||
"Stock Entry",
|
||||
"Budget",
|
||||
"Payroll Entry",
|
||||
"Delivery Note",
|
||||
"Sales Invoice Item",
|
||||
"Purchase Invoice Item",
|
||||
"Purchase Order Item",
|
||||
"Journal Entry Account",
|
||||
"Material Request Item",
|
||||
"Delivery Note Item",
|
||||
"Purchase Receipt Item",
|
||||
"Stock Entry Detail",
|
||||
"Payment Entry Deduction",
|
||||
"Sales Taxes and Charges",
|
||||
"Purchase Taxes and Charges",
|
||||
"Shipping Rule",
|
||||
"Landed Cost Item",
|
||||
"Asset Value Adjustment",
|
||||
"Loyalty Program",
|
||||
"Fee Schedule",
|
||||
"Fee Structure",
|
||||
"Stock Reconciliation",
|
||||
"Travel Request",
|
||||
"Fees",
|
||||
"POS Profile",
|
||||
"Opening Invoice Creation Tool",
|
||||
"Opening Invoice Creation Tool Item",
|
||||
"Subscription",
|
||||
"Subscription Plan",
|
||||
"POS Invoice",
|
||||
"POS Invoice Item",
|
||||
]
|
||||
|
||||
regional_overrides = {
|
||||
'France': {
|
||||
'erpnext.tests.test_regional.test_method': 'erpnext.regional.france.utils.test_method'
|
||||
"France": {
|
||||
"erpnext.tests.test_regional.test_method": "erpnext.regional.france.utils.test_method"
|
||||
},
|
||||
'India': {
|
||||
'erpnext.tests.test_regional.test_method': 'erpnext.regional.india.utils.test_method',
|
||||
'erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_header': 'erpnext.regional.india.utils.get_itemised_tax_breakup_header',
|
||||
'erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_data': 'erpnext.regional.india.utils.get_itemised_tax_breakup_data',
|
||||
'erpnext.accounts.party.get_regional_address_details': 'erpnext.regional.india.utils.get_regional_address_details',
|
||||
'erpnext.controllers.taxes_and_totals.get_regional_round_off_accounts': 'erpnext.regional.india.utils.get_regional_round_off_accounts',
|
||||
'erpnext.hr.utils.calculate_annual_eligible_hra_exemption': 'erpnext.regional.india.utils.calculate_annual_eligible_hra_exemption',
|
||||
'erpnext.hr.utils.calculate_hra_exemption_for_period': 'erpnext.regional.india.utils.calculate_hra_exemption_for_period',
|
||||
'erpnext.controllers.accounts_controller.validate_einvoice_fields': 'erpnext.regional.india.e_invoice.utils.validate_einvoice_fields',
|
||||
'erpnext.assets.doctype.asset.asset.get_depreciation_amount': 'erpnext.regional.india.utils.get_depreciation_amount',
|
||||
'erpnext.stock.doctype.item.item.set_item_tax_from_hsn_code': 'erpnext.regional.india.utils.set_item_tax_from_hsn_code'
|
||||
"India": {
|
||||
"erpnext.tests.test_regional.test_method": "erpnext.regional.india.utils.test_method",
|
||||
"erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_header": "erpnext.regional.india.utils.get_itemised_tax_breakup_header",
|
||||
"erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_data": "erpnext.regional.india.utils.get_itemised_tax_breakup_data",
|
||||
"erpnext.accounts.party.get_regional_address_details": "erpnext.regional.india.utils.get_regional_address_details",
|
||||
"erpnext.controllers.taxes_and_totals.get_regional_round_off_accounts": "erpnext.regional.india.utils.get_regional_round_off_accounts",
|
||||
"erpnext.hr.utils.calculate_annual_eligible_hra_exemption": "erpnext.regional.india.utils.calculate_annual_eligible_hra_exemption",
|
||||
"erpnext.hr.utils.calculate_hra_exemption_for_period": "erpnext.regional.india.utils.calculate_hra_exemption_for_period",
|
||||
"erpnext.controllers.accounts_controller.validate_einvoice_fields": "erpnext.regional.india.e_invoice.utils.validate_einvoice_fields",
|
||||
"erpnext.assets.doctype.asset.asset.get_depreciation_amount": "erpnext.regional.india.utils.get_depreciation_amount",
|
||||
"erpnext.stock.doctype.item.item.set_item_tax_from_hsn_code": "erpnext.regional.india.utils.set_item_tax_from_hsn_code",
|
||||
},
|
||||
'United Arab Emirates': {
|
||||
'erpnext.controllers.taxes_and_totals.update_itemised_tax_data': 'erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data',
|
||||
'erpnext.accounts.doctype.purchase_invoice.purchase_invoice.make_regional_gl_entries': 'erpnext.regional.united_arab_emirates.utils.make_regional_gl_entries',
|
||||
"United Arab Emirates": {
|
||||
"erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data",
|
||||
"erpnext.accounts.doctype.purchase_invoice.purchase_invoice.make_regional_gl_entries": "erpnext.regional.united_arab_emirates.utils.make_regional_gl_entries",
|
||||
},
|
||||
'Saudi Arabia': {
|
||||
'erpnext.controllers.taxes_and_totals.update_itemised_tax_data': 'erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data'
|
||||
"Saudi Arabia": {
|
||||
"erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.united_arab_emirates.utils.update_itemised_tax_data"
|
||||
},
|
||||
"Italy": {
|
||||
"erpnext.controllers.taxes_and_totals.update_itemised_tax_data": "erpnext.regional.italy.utils.update_itemised_tax_data",
|
||||
"erpnext.controllers.accounts_controller.validate_regional": "erpnext.regional.italy.utils.sales_invoice_validate",
|
||||
},
|
||||
'Italy': {
|
||||
'erpnext.controllers.taxes_and_totals.update_itemised_tax_data': 'erpnext.regional.italy.utils.update_itemised_tax_data',
|
||||
'erpnext.controllers.accounts_controller.validate_regional': 'erpnext.regional.italy.utils.sales_invoice_validate',
|
||||
}
|
||||
}
|
||||
user_privacy_documents = [
|
||||
{
|
||||
'doctype': 'Lead',
|
||||
'match_field': 'email_id',
|
||||
'personal_fields': ['phone', 'mobile_no', 'fax', 'website', 'lead_name'],
|
||||
"doctype": "Lead",
|
||||
"match_field": "email_id",
|
||||
"personal_fields": ["phone", "mobile_no", "fax", "website", "lead_name"],
|
||||
},
|
||||
{
|
||||
'doctype': 'Opportunity',
|
||||
'match_field': 'contact_email',
|
||||
'personal_fields': ['contact_mobile', 'contact_display', 'customer_name'],
|
||||
}
|
||||
"doctype": "Opportunity",
|
||||
"match_field": "contact_email",
|
||||
"personal_fields": ["contact_mobile", "contact_display", "customer_name"],
|
||||
},
|
||||
]
|
||||
|
||||
# ERPNext doctypes for Global Search
|
||||
@@ -541,107 +688,107 @@ global_search_doctypes = {
|
||||
{"doctype": "Warranty Claim", "index": 47},
|
||||
],
|
||||
"Healthcare": [
|
||||
{'doctype': 'Patient', 'index': 1},
|
||||
{'doctype': 'Medical Department', 'index': 2},
|
||||
{'doctype': 'Vital Signs', 'index': 3},
|
||||
{'doctype': 'Healthcare Practitioner', 'index': 4},
|
||||
{'doctype': 'Patient Appointment', 'index': 5},
|
||||
{'doctype': 'Healthcare Service Unit', 'index': 6},
|
||||
{'doctype': 'Patient Encounter', 'index': 7},
|
||||
{'doctype': 'Antibiotic', 'index': 8},
|
||||
{'doctype': 'Diagnosis', 'index': 9},
|
||||
{'doctype': 'Lab Test', 'index': 10},
|
||||
{'doctype': 'Clinical Procedure', 'index': 11},
|
||||
{'doctype': 'Inpatient Record', 'index': 12},
|
||||
{'doctype': 'Sample Collection', 'index': 13},
|
||||
{'doctype': 'Patient Medical Record', 'index': 14},
|
||||
{'doctype': 'Appointment Type', 'index': 15},
|
||||
{'doctype': 'Fee Validity', 'index': 16},
|
||||
{'doctype': 'Practitioner Schedule', 'index': 17},
|
||||
{'doctype': 'Dosage Form', 'index': 18},
|
||||
{'doctype': 'Lab Test Sample', 'index': 19},
|
||||
{'doctype': 'Prescription Duration', 'index': 20},
|
||||
{'doctype': 'Prescription Dosage', 'index': 21},
|
||||
{'doctype': 'Sensitivity', 'index': 22},
|
||||
{'doctype': 'Complaint', 'index': 23},
|
||||
{'doctype': 'Medical Code', 'index': 24},
|
||||
{"doctype": "Patient", "index": 1},
|
||||
{"doctype": "Medical Department", "index": 2},
|
||||
{"doctype": "Vital Signs", "index": 3},
|
||||
{"doctype": "Healthcare Practitioner", "index": 4},
|
||||
{"doctype": "Patient Appointment", "index": 5},
|
||||
{"doctype": "Healthcare Service Unit", "index": 6},
|
||||
{"doctype": "Patient Encounter", "index": 7},
|
||||
{"doctype": "Antibiotic", "index": 8},
|
||||
{"doctype": "Diagnosis", "index": 9},
|
||||
{"doctype": "Lab Test", "index": 10},
|
||||
{"doctype": "Clinical Procedure", "index": 11},
|
||||
{"doctype": "Inpatient Record", "index": 12},
|
||||
{"doctype": "Sample Collection", "index": 13},
|
||||
{"doctype": "Patient Medical Record", "index": 14},
|
||||
{"doctype": "Appointment Type", "index": 15},
|
||||
{"doctype": "Fee Validity", "index": 16},
|
||||
{"doctype": "Practitioner Schedule", "index": 17},
|
||||
{"doctype": "Dosage Form", "index": 18},
|
||||
{"doctype": "Lab Test Sample", "index": 19},
|
||||
{"doctype": "Prescription Duration", "index": 20},
|
||||
{"doctype": "Prescription Dosage", "index": 21},
|
||||
{"doctype": "Sensitivity", "index": 22},
|
||||
{"doctype": "Complaint", "index": 23},
|
||||
{"doctype": "Medical Code", "index": 24},
|
||||
],
|
||||
"Education": [
|
||||
{'doctype': 'Article', 'index': 1},
|
||||
{'doctype': 'Video', 'index': 2},
|
||||
{'doctype': 'Topic', 'index': 3},
|
||||
{'doctype': 'Course', 'index': 4},
|
||||
{'doctype': 'Program', 'index': 5},
|
||||
{'doctype': 'Quiz', 'index': 6},
|
||||
{'doctype': 'Question', 'index': 7},
|
||||
{'doctype': 'Fee Schedule', 'index': 8},
|
||||
{'doctype': 'Fee Structure', 'index': 9},
|
||||
{'doctype': 'Fees', 'index': 10},
|
||||
{'doctype': 'Student Group', 'index': 11},
|
||||
{'doctype': 'Student', 'index': 12},
|
||||
{'doctype': 'Instructor', 'index': 13},
|
||||
{'doctype': 'Course Activity', 'index': 14},
|
||||
{'doctype': 'Quiz Activity', 'index': 15},
|
||||
{'doctype': 'Course Enrollment', 'index': 16},
|
||||
{'doctype': 'Program Enrollment', 'index': 17},
|
||||
{'doctype': 'Student Language', 'index': 18},
|
||||
{'doctype': 'Student Applicant', 'index': 19},
|
||||
{'doctype': 'Assessment Result', 'index': 20},
|
||||
{'doctype': 'Assessment Plan', 'index': 21},
|
||||
{'doctype': 'Grading Scale', 'index': 22},
|
||||
{'doctype': 'Guardian', 'index': 23},
|
||||
{'doctype': 'Student Leave Application', 'index': 24},
|
||||
{'doctype': 'Student Log', 'index': 25},
|
||||
{'doctype': 'Room', 'index': 26},
|
||||
{'doctype': 'Course Schedule', 'index': 27},
|
||||
{'doctype': 'Student Attendance', 'index': 28},
|
||||
{'doctype': 'Announcement', 'index': 29},
|
||||
{'doctype': 'Student Category', 'index': 30},
|
||||
{'doctype': 'Assessment Group', 'index': 31},
|
||||
{'doctype': 'Student Batch Name', 'index': 32},
|
||||
{'doctype': 'Assessment Criteria', 'index': 33},
|
||||
{'doctype': 'Academic Year', 'index': 34},
|
||||
{'doctype': 'Academic Term', 'index': 35},
|
||||
{'doctype': 'School House', 'index': 36},
|
||||
{'doctype': 'Student Admission', 'index': 37},
|
||||
{'doctype': 'Fee Category', 'index': 38},
|
||||
{'doctype': 'Assessment Code', 'index': 39},
|
||||
{'doctype': 'Discussion', 'index': 40},
|
||||
{"doctype": "Article", "index": 1},
|
||||
{"doctype": "Video", "index": 2},
|
||||
{"doctype": "Topic", "index": 3},
|
||||
{"doctype": "Course", "index": 4},
|
||||
{"doctype": "Program", "index": 5},
|
||||
{"doctype": "Quiz", "index": 6},
|
||||
{"doctype": "Question", "index": 7},
|
||||
{"doctype": "Fee Schedule", "index": 8},
|
||||
{"doctype": "Fee Structure", "index": 9},
|
||||
{"doctype": "Fees", "index": 10},
|
||||
{"doctype": "Student Group", "index": 11},
|
||||
{"doctype": "Student", "index": 12},
|
||||
{"doctype": "Instructor", "index": 13},
|
||||
{"doctype": "Course Activity", "index": 14},
|
||||
{"doctype": "Quiz Activity", "index": 15},
|
||||
{"doctype": "Course Enrollment", "index": 16},
|
||||
{"doctype": "Program Enrollment", "index": 17},
|
||||
{"doctype": "Student Language", "index": 18},
|
||||
{"doctype": "Student Applicant", "index": 19},
|
||||
{"doctype": "Assessment Result", "index": 20},
|
||||
{"doctype": "Assessment Plan", "index": 21},
|
||||
{"doctype": "Grading Scale", "index": 22},
|
||||
{"doctype": "Guardian", "index": 23},
|
||||
{"doctype": "Student Leave Application", "index": 24},
|
||||
{"doctype": "Student Log", "index": 25},
|
||||
{"doctype": "Room", "index": 26},
|
||||
{"doctype": "Course Schedule", "index": 27},
|
||||
{"doctype": "Student Attendance", "index": 28},
|
||||
{"doctype": "Announcement", "index": 29},
|
||||
{"doctype": "Student Category", "index": 30},
|
||||
{"doctype": "Assessment Group", "index": 31},
|
||||
{"doctype": "Student Batch Name", "index": 32},
|
||||
{"doctype": "Assessment Criteria", "index": 33},
|
||||
{"doctype": "Academic Year", "index": 34},
|
||||
{"doctype": "Academic Term", "index": 35},
|
||||
{"doctype": "School House", "index": 36},
|
||||
{"doctype": "Student Admission", "index": 37},
|
||||
{"doctype": "Fee Category", "index": 38},
|
||||
{"doctype": "Assessment Code", "index": 39},
|
||||
{"doctype": "Discussion", "index": 40},
|
||||
],
|
||||
"Agriculture": [
|
||||
{'doctype': 'Weather', 'index': 1},
|
||||
{'doctype': 'Soil Texture', 'index': 2},
|
||||
{'doctype': 'Water Analysis', 'index': 3},
|
||||
{'doctype': 'Soil Analysis', 'index': 4},
|
||||
{'doctype': 'Plant Analysis', 'index': 5},
|
||||
{'doctype': 'Agriculture Analysis Criteria', 'index': 6},
|
||||
{'doctype': 'Disease', 'index': 7},
|
||||
{'doctype': 'Crop', 'index': 8},
|
||||
{'doctype': 'Fertilizer', 'index': 9},
|
||||
{'doctype': 'Crop Cycle', 'index': 10}
|
||||
{"doctype": "Weather", "index": 1},
|
||||
{"doctype": "Soil Texture", "index": 2},
|
||||
{"doctype": "Water Analysis", "index": 3},
|
||||
{"doctype": "Soil Analysis", "index": 4},
|
||||
{"doctype": "Plant Analysis", "index": 5},
|
||||
{"doctype": "Agriculture Analysis Criteria", "index": 6},
|
||||
{"doctype": "Disease", "index": 7},
|
||||
{"doctype": "Crop", "index": 8},
|
||||
{"doctype": "Fertilizer", "index": 9},
|
||||
{"doctype": "Crop Cycle", "index": 10},
|
||||
],
|
||||
"Non Profit": [
|
||||
{'doctype': 'Certified Consultant', 'index': 1},
|
||||
{'doctype': 'Certification Application', 'index': 2},
|
||||
{'doctype': 'Volunteer', 'index': 3},
|
||||
{'doctype': 'Membership', 'index': 4},
|
||||
{'doctype': 'Member', 'index': 5},
|
||||
{'doctype': 'Donor', 'index': 6},
|
||||
{'doctype': 'Chapter', 'index': 7},
|
||||
{'doctype': 'Grant Application', 'index': 8},
|
||||
{'doctype': 'Volunteer Type', 'index': 9},
|
||||
{'doctype': 'Donor Type', 'index': 10},
|
||||
{'doctype': 'Membership Type', 'index': 11}
|
||||
{"doctype": "Certified Consultant", "index": 1},
|
||||
{"doctype": "Certification Application", "index": 2},
|
||||
{"doctype": "Volunteer", "index": 3},
|
||||
{"doctype": "Membership", "index": 4},
|
||||
{"doctype": "Member", "index": 5},
|
||||
{"doctype": "Donor", "index": 6},
|
||||
{"doctype": "Chapter", "index": 7},
|
||||
{"doctype": "Grant Application", "index": 8},
|
||||
{"doctype": "Volunteer Type", "index": 9},
|
||||
{"doctype": "Donor Type", "index": 10},
|
||||
{"doctype": "Membership Type", "index": 11},
|
||||
],
|
||||
"Hospitality": [
|
||||
{'doctype': 'Hotel Room', 'index': 0},
|
||||
{'doctype': 'Hotel Room Reservation', 'index': 1},
|
||||
{'doctype': 'Hotel Room Pricing', 'index': 2},
|
||||
{'doctype': 'Hotel Room Package', 'index': 3},
|
||||
{'doctype': 'Hotel Room Type', 'index': 4}
|
||||
]
|
||||
{"doctype": "Hotel Room", "index": 0},
|
||||
{"doctype": "Hotel Room Reservation", "index": 1},
|
||||
{"doctype": "Hotel Room Pricing", "index": 2},
|
||||
{"doctype": "Hotel Room Package", "index": 3},
|
||||
{"doctype": "Hotel Room Type", "index": 4},
|
||||
],
|
||||
}
|
||||
|
||||
additional_timeline_content = {
|
||||
'*': ['erpnext.telephony.doctype.call_log.call_log.get_linked_call_logs']
|
||||
"*": ["erpnext.telephony.doctype.call_log.call_log.get_linked_call_logs"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user