2015-02-24 12:24:53 +05:30
|
|
|
from __future__ import unicode_literals
|
2015-09-11 18:49:59 +05:30
|
|
|
from frappe import _
|
|
|
|
|
2014-05-02 12:14:03 +05:30
|
|
|
app_name = "erpnext"
|
|
|
|
app_title = "ERPNext"
|
2015-07-22 15:07:25 +05:30
|
|
|
app_publisher = "Frappe Technologies Pvt. Ltd."
|
2015-11-18 16:48:19 +05:30
|
|
|
app_description = """ERP made simple"""
|
2016-12-07 11:08:48 +05:30
|
|
|
app_icon = "fa fa-th"
|
2014-05-02 12:14:03 +05:30
|
|
|
app_color = "#e74c3c"
|
2015-11-05 16:55:10 +05:30
|
|
|
app_email = "info@erpnext.com"
|
|
|
|
app_license = "GNU General Public License (v3)"
|
2015-11-02 10:45:18 +05:30
|
|
|
source_link = "https://github.com/frappe/erpnext"
|
2014-05-02 12:14:03 +05:30
|
|
|
|
2018-11-03 18:03:35 +05:30
|
|
|
|
2018-11-08 12:48:35 +05:30
|
|
|
develop_version = '12.x.x-develop'
|
2017-03-10 09:38:58 +05:30
|
|
|
|
2014-07-09 12:59:56 +05:30
|
|
|
error_report_email = "support@erpnext.com"
|
|
|
|
|
2014-05-02 12:14:03 +05:30
|
|
|
app_include_js = "assets/js/erpnext.min.js"
|
|
|
|
app_include_css = "assets/css/erpnext.css"
|
|
|
|
web_include_js = "assets/js/erpnext-web.min.js"
|
2018-08-07 18:28:39 +05:30
|
|
|
web_include_css = "assets/css/erpnext-web.css"
|
2014-05-02 12:14:03 +05:30
|
|
|
|
2017-03-13 16:32:46 +05:30
|
|
|
doctype_js = {
|
|
|
|
"Communication": "public/js/communication.js",
|
2018-10-03 07:11:26 +02:00
|
|
|
"Event": "public/js/event.js"
|
2017-03-13 16:32:46 +05:30
|
|
|
}
|
|
|
|
|
2018-08-24 15:15:56 +05:30
|
|
|
welcome_email = "erpnext.setup.utils.welcome_email"
|
|
|
|
|
2015-11-09 16:53:11 +05:30
|
|
|
# setup wizard
|
|
|
|
setup_wizard_requires = "assets/erpnext/js/setup_wizard.js"
|
2017-12-21 11:55:58 +05:30
|
|
|
setup_wizard_stages = "erpnext.setup.setup_wizard.setup_wizard.get_setup_stages"
|
2017-09-04 11:14:04 +05:30
|
|
|
setup_wizard_test = "erpnext.setup.setup_wizard.test_setup_wizard.run_setup_wizard_test"
|
2015-11-09 16:53:11 +05:30
|
|
|
|
2015-12-31 11:12:48 +05:30
|
|
|
before_install = "erpnext.setup.install.check_setup_wizard_not_completed"
|
2014-05-02 12:14:03 +05:30
|
|
|
after_install = "erpnext.setup.install.after_install"
|
|
|
|
|
|
|
|
boot_session = "erpnext.startup.boot.boot_session"
|
|
|
|
notification_config = "erpnext.startup.notifications.get_notification_config"
|
2017-02-22 16:15:43 +05:30
|
|
|
get_help_messages = "erpnext.utilities.activation.get_help_messages"
|
2017-09-04 11:14:04 +05:30
|
|
|
get_user_progress_slides = "erpnext.utilities.user_progress.get_user_progress_slides"
|
|
|
|
update_and_get_user_progress = "erpnext.utilities.user_progress_utils.update_default_domain_actions_and_get_state"
|
2014-05-02 12:14:03 +05:30
|
|
|
|
2014-10-21 16:16:30 +05:30
|
|
|
on_session_creation = "erpnext.shopping_cart.utils.set_cart_count"
|
|
|
|
on_logout = "erpnext.shopping_cart.utils.clear_cart_count"
|
2015-02-23 22:14:12 +05:30
|
|
|
|
2017-11-28 18:04:08 +05:30
|
|
|
treeviews = ['Account', 'Cost Center', 'Warehouse', 'Item Group', 'Customer Group', 'Sales Person', 'Territory', 'Assessment Group']
|
2016-05-02 13:28:46 +05:30
|
|
|
|
2015-02-23 22:14:12 +05:30
|
|
|
# website
|
|
|
|
update_website_context = "erpnext.shopping_cart.utils.update_website_context"
|
|
|
|
my_account_context = "erpnext.shopping_cart.utils.update_my_account_context"
|
2015-07-08 12:39:27 +05:30
|
|
|
|
2017-10-04 15:55:56 +05:30
|
|
|
email_append_to = ["Job Applicant", "Lead", "Opportunity", "Issue"]
|
2015-02-23 22:14:12 +05:30
|
|
|
|
2018-03-20 12:38:43 +05:30
|
|
|
calendars = ["Task", "Work Order", "Leave Application", "Sales Order", "Holiday List", "Course Schedule"]
|
2015-07-08 12:39:27 +05:30
|
|
|
|
2017-11-17 07:12:24 +01:00
|
|
|
|
2016-03-01 11:33:49 +05:30
|
|
|
|
2017-10-17 12:30:34 +05:30
|
|
|
domains = {
|
[Agriculture Domain] (#11663)
* created Soil Analysis, Water Analysis, Weather and Fertilizer doctype
* soil doctype edited and crop doctype added
* minor stuff
* Land Unit + Leaflet
* crop cycle added
* Land Unit changes + Crop cycle
* autoname for plant_analysis
* created Agriculture Task
* minor stuff
* - deleted agriculture_task
- current state after the call
* [Agriculture] modified fertilizer doctype to have a link to Item
This was done so that the `Fertilizer` doctype could track the contents exclusive to the fertilizer, whereas the `Fertilizer Item` could be a seperate entity, so as to leverage the existing ERPNext doctypes
* Added fields to `Water Analysis` doctype
- Collection Datetime
- Laboratory Testing Datetime
- Results Datetime (default to Laboratory Testing Datetime)
* Edited the doctypes `Agrivulture Task`, `Pest` and `Soil Texture`
- Created `agriculture task` doctype
- added fields `Common Name`, `Scientific Name`, `Treatment` and `Treatment Options` to `Pest` doctype
- edited `Soil Texture` doctype to contain a soil texture ternary plot diagram made using SnapSVG. The code was put in public folder so as to be accessible by the entire agriculture module
* Recursively reflect child land unit feature changes on parents
* fixed feature repition bug
* added legeneds to ternary plot
* added stuff
* changes
* fix Task
* reverted the Task Doctype to have naming in the form TASK.#####
* fixed modifications made to TASK doctype
* [dirty commit] added auto create Task from Crop on creation of Crop Cycle
* Changed the Crop Cycle Doctype
- Deleted the "Crop Cycly Task" doctype and its link from "Crop Cycle"
- Creation of a new Project with the same name as the Crop Cycle on creation of a new Crop Cycle
- Creation of all the tasks imported from Agriculture Task doctype of the Crop in the Crop Cycle
* [Agriculture Module] Modifications
- Created childtable doctype "Pest Detected"
- Added childtable "Pest Detected" to Pest
- Modified "Agriculture Task" to include "Start Day" and "End Day" of task
- Modified the code in "Crop Cycle" to create a parent task with same name as Crop Cycle
* [Agriculture Module] fixed Pest doctype not saving issue
* [Agrcilture Module] Changes in Crop Cycle
- removed the creation of a master task on creation of a new crop cycle
- temporary fix to add the pest tasks from the pests added in crop cycle
* land_unit_tree.js fields modified to have field objects instead of just field names
* Revert "land_unit_tree.js modified"
* land_unit_tree.js fields modified to have field objects instead of just field names
* [Agriculture Domain] Converted Agriculture Module to a Domain
- Converted into a Domain field from Select to Link field in Company doctype, linked to Domain doctype
- Agriculture (alpha) is now a Domain
* land_unit area aggregation enabled
* land_unit.py checks feature diff for every ancestor and not just the parent
* Removed unnecessary print messages
* agriculture.py modified to include fixtures
* fixtures added to setup.py inside agriculture module
* [Agriculture Domain] UI tests added
- 'materials' table renamed to 'materials_required' in 'Crop'
- wrote UI test for Crop, Fertilizer, Crop Cycle, Pest, Water Analysis, Soil Texture
- moved creation of tasks from client side to server side in Crop Cycle
- Plant Analysis, Water Analysis, Soil Analysis, Soil Texture docs are now autonamed in the format PAnalysis.#####, WAnalysis.#####, SAnalysis.#####, STexture.##### respectively
- company_name changed in domains.py from 'Schrute Farms.' to 'Schrute Farms'
* [Agriculture Domain] Mostly written server side tests and moved client side code to server side
- moved client side code to server side for Crop, Water Analysis, Pest, Soil Texture,
- wrote server side tests for Crop, Crop Cycle, Fertilizer, Soil Texture, Pest
- NOTE: none of the server side codes were tested
* [Agriculture Domain] All server side tests working locally
* [Agriculture Domain] Testing
- added sample test for Land Unit, which needs to be modified to test multiple things
- modified tests to be independant of each other
* Land Units tests added and area aggregation code migrated to server side
* added land_unit server side tests and on_trash added to land_unit
* Changing field location for start date
* [Agriculture Domain] deleted unnecessary comments
* [Agriculture Domain] reverted changes
* [Agriculture Domain] Modified the code to replace Pest doctype with Land Unit doctype
- Deleted the Pest doctype and replaced it with the more generic Disease doctype
- Deleted the Detected Pest doctype and replaced it with Detected Disease doctype
* [Agriculture Domain] resolves #11654, resolves #11653
* [Agriculture] Added links to soil analysis, soil texture, plant analysis in crop cycle and land unit
- not working perfectly yet
- docs are fetched but not appended
* [Agricuture] Crop Cycle modifed to link with relevent analysis docs, not fully functional
* [Agriculture] added seperate stage for client side agriculture tests
* [Agriculture] minor modification to crop_cycle.js test
* [Agriculture] fixed tests
* upgrade chromedriver in .travis.yml from 2.32 to 2.33
* [Agriculture] added land unit ui test
* [Agriculture] added Agriculture server side test as a seperate stage in travis
* tesing travis.yml
* [Agriculture] Crop Cycle is able to fetch linked analysis docs
* Modified travis.yml for modular server side testing
* [minor fix][Agriculture] in soil_texture
- fixed multiple soil_texture ternary plot creation on refresh
- fixed error on soil composition change
* Update .travis.yml
* removed location field from linked doctypes
* minor fixes and cleanup of agri
* minor fix in agriculture and domain patches
* permissions added to agriculture
- Agriculture Manager and Agriculture User roles were added to all Agriculture doctypes
* [Agriculture]
- Created Agiculture Analysis Criteria and added sample records to it
- All the analysis doctypes now fetch their fields inside a child table, form Agriculture Analysis Criteria
- Also Fertilizer does the same
This was introduced so that, new parameters could be added on demand
* minor changes requested in Agriculture
* minor changes
* minor fix
* Update desktop.py
* Update .travis.yml
2017-12-06 18:36:27 +05:30
|
|
|
'Agriculture': 'erpnext.domains.agriculture',
|
2017-10-17 12:30:34 +05:30
|
|
|
'Distribution': 'erpnext.domains.distribution',
|
|
|
|
'Education': 'erpnext.domains.education',
|
|
|
|
'Healthcare': 'erpnext.domains.healthcare',
|
|
|
|
'Hospitality': 'erpnext.domains.hospitality',
|
|
|
|
'Manufacturing': 'erpnext.domains.manufacturing',
|
2017-12-13 18:36:08 +05:30
|
|
|
'Non Profit': 'erpnext.domains.non_profit',
|
2017-10-17 12:30:34 +05:30
|
|
|
'Retail': 'erpnext.domains.retail',
|
|
|
|
'Services': 'erpnext.domains.services',
|
|
|
|
}
|
|
|
|
|
2017-08-10 21:06:09 +05:30
|
|
|
website_generators = ["Item Group", "Item", "BOM", "Sales Partner",
|
|
|
|
"Job Opening", "Student Admission"]
|
2015-07-08 12:39:27 +05:30
|
|
|
|
2015-04-16 12:41:42 +05:30
|
|
|
website_context = {
|
2015-04-16 15:09:42 +05:30
|
|
|
"favicon": "/assets/erpnext/images/favicon.png",
|
2017-01-10 14:46:45 +05:30
|
|
|
"splash_image": "/assets/erpnext/images/erp-icon.svg"
|
2015-04-16 12:41:42 +05:30
|
|
|
}
|
|
|
|
|
2015-02-23 22:14:12 +05:30
|
|
|
website_route_rules = [
|
|
|
|
{"from_route": "/orders", "to_route": "Sales Order"},
|
2015-09-11 18:49:59 +05:30
|
|
|
{"from_route": "/orders/<path:name>", "to_route": "order",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Sales Order",
|
2017-07-28 15:24:22 +02:00
|
|
|
"parents": [{"label": _("Orders"), "route": "orders"}]
|
2015-09-11 18:49:59 +05:30
|
|
|
}
|
|
|
|
},
|
2015-02-23 22:14:12 +05:30
|
|
|
{"from_route": "/invoices", "to_route": "Sales Invoice"},
|
2015-09-11 18:49:59 +05:30
|
|
|
{"from_route": "/invoices/<path:name>", "to_route": "order",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Sales Invoice",
|
2017-07-28 15:24:22 +02:00
|
|
|
"parents": [{"label": _("Invoices"), "route": "invoices"}]
|
2015-09-11 18:49:59 +05:30
|
|
|
}
|
|
|
|
},
|
2017-07-21 15:19:47 +05:30
|
|
|
{"from_route": "/supplier-quotations", "to_route": "Supplier Quotation"},
|
|
|
|
{"from_route": "/supplier-quotations/<path:name>", "to_route": "order",
|
2016-09-21 16:49:58 +05:30
|
|
|
"defaults": {
|
|
|
|
"doctype": "Supplier Quotation",
|
2017-09-27 08:23:38 +01:00
|
|
|
"parents": [{"label": _("Supplier Quotation"), "route": "supplier-quotations"}]
|
2016-09-21 16:49:58 +05:30
|
|
|
}
|
|
|
|
},
|
2017-07-21 15:19:47 +05:30
|
|
|
{"from_route": "/quotations", "to_route": "Quotation"},
|
|
|
|
{"from_route": "/quotations/<path:name>", "to_route": "order",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Quotation",
|
2017-08-10 21:06:09 +05:30
|
|
|
"parents": [{"label": _("Quotations"), "route": "quotations"}]
|
2017-07-21 15:19:47 +05:30
|
|
|
}
|
|
|
|
},
|
2015-02-23 22:14:12 +05:30
|
|
|
{"from_route": "/shipments", "to_route": "Delivery Note"},
|
2015-09-11 18:49:59 +05:30
|
|
|
{"from_route": "/shipments/<path:name>", "to_route": "order",
|
|
|
|
"defaults": {
|
2015-11-26 18:22:03 +05:30
|
|
|
"doctype": "Delivery Note",
|
2017-07-28 15:24:22 +02:00
|
|
|
"parents": [{"label": _("Shipments"), "route": "shipments"}]
|
2015-09-11 18:49:59 +05:30
|
|
|
}
|
2016-02-19 17:27:23 +05:30
|
|
|
},
|
2016-03-03 14:00:35 +05:30
|
|
|
{"from_route": "/rfq", "to_route": "Request for Quotation"},
|
|
|
|
{"from_route": "/rfq/<path:name>", "to_route": "rfq",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Request for Quotation",
|
2017-07-28 15:24:22 +02:00
|
|
|
"parents": [{"label": _("Request for Quotation"), "route": "rfq"}]
|
2016-03-03 14:00:35 +05:30
|
|
|
}
|
|
|
|
},
|
2016-07-04 14:28:09 +05:30
|
|
|
{"from_route": "/addresses", "to_route": "Address"},
|
|
|
|
{"from_route": "/addresses/<path:name>", "to_route": "addresses",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Address",
|
2017-07-28 15:24:22 +02:00
|
|
|
"parents": [{"label": _("Addresses"), "route": "addresses"}]
|
2016-07-04 14:28:09 +05:30
|
|
|
}
|
|
|
|
},
|
2016-02-19 17:27:23 +05:30
|
|
|
{"from_route": "/jobs", "to_route": "Job Opening"},
|
2016-09-15 14:48:13 +05:30
|
|
|
{"from_route": "/admissions", "to_route": "Student Admission"},
|
2017-07-25 10:53:12 +05:30
|
|
|
{"from_route": "/boms", "to_route": "BOM"},
|
|
|
|
{"from_route": "/timesheets", "to_route": "Timesheet"},
|
2018-11-13 14:37:16 +08:00
|
|
|
{"from_route": "/material-requests", "to_route": "Material Request"},
|
|
|
|
{"from_route": "/material-requests/<path:name>", "to_route": "material_request_info",
|
|
|
|
"defaults": {
|
|
|
|
"doctype": "Material Request",
|
|
|
|
"parents": [{"label": _("Material Request"), "route": "material-requests"}]
|
|
|
|
}
|
|
|
|
},
|
2015-02-23 22:14:12 +05:30
|
|
|
]
|
|
|
|
|
2017-03-08 12:33:43 +05:30
|
|
|
standard_portal_menu_items = [
|
2018-07-16 18:08:53 +05:30
|
|
|
{"title": _("Personal Details"), "route": "/personal-details", "reference_doctype": "Patient", "role": "Patient"},
|
2016-04-01 11:53:50 +05:30
|
|
|
{"title": _("Projects"), "route": "/project", "reference_doctype": "Project"},
|
2016-09-23 21:51:51 +05:30
|
|
|
{"title": _("Request for Quotations"), "route": "/rfq", "reference_doctype": "Request for Quotation", "role": "Supplier"},
|
2017-07-21 15:19:47 +05:30
|
|
|
{"title": _("Supplier Quotation"), "route": "/supplier-quotations", "reference_doctype": "Supplier Quotation", "role": "Supplier"},
|
|
|
|
{"title": _("Quotations"), "route": "/quotations", "reference_doctype": "Quotation", "role":"Customer"},
|
2016-09-23 21:51:51 +05:30
|
|
|
{"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"},
|
2016-07-19 14:17:33 +05:30
|
|
|
{"title": _("Addresses"), "route": "/addresses", "reference_doctype": "Address"},
|
2017-09-18 16:00:34 +05:30
|
|
|
{"title": _("Timesheets"), "route": "/timesheets", "reference_doctype": "Timesheet", "role":"Customer"},
|
2017-09-13 12:52:30 +05:30
|
|
|
{"title": _("Timesheets"), "route": "/timesheets", "reference_doctype": "Timesheet", "role":"Customer"},
|
|
|
|
{"title": _("Lab Test"), "route": "/lab-test", "reference_doctype": "Lab Test", "role":"Patient"},
|
2018-07-16 18:08:53 +05:30
|
|
|
{"title": _("Prescription"), "route": "/prescription", "reference_doctype": "Patient Encounter", "role":"Patient"},
|
2017-09-18 16:00:34 +05:30
|
|
|
{"title": _("Patient Appointment"), "route": "/patient-appointments", "reference_doctype": "Patient Appointment", "role":"Patient"},
|
|
|
|
{"title": _("Fees"), "route": "/fees", "reference_doctype": "Fees", "role":"Student"},
|
2017-10-05 14:31:31 +05:30
|
|
|
{"title": _("Newsletter"), "route": "/newsletters", "reference_doctype": "Newsletter"},
|
2017-10-31 13:27:49 +05:30
|
|
|
{"title": _("Admission"), "route": "/admissions", "reference_doctype": "Student Admission"},
|
2018-06-15 10:04:19 +05:30
|
|
|
{"title": _("Certification"), "route": "/certification", "reference_doctype": "Certification Application"},
|
2018-11-13 14:37:16 +08:00
|
|
|
{"title": _("Material Request"), "route": "/material-requests", "reference_doctype": "Material Request", "role": "Customer"},
|
2016-09-23 21:51:51 +05:30
|
|
|
]
|
|
|
|
|
|
|
|
default_roles = [
|
2017-01-14 00:25:22 +05:30
|
|
|
{'role': 'Customer', 'doctype':'Contact', 'email_field': 'email_id'},
|
|
|
|
{'role': 'Supplier', 'doctype':'Contact', 'email_field': 'email_id'},
|
2017-07-25 10:53:12 +05:30
|
|
|
{'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'},
|
2016-03-30 12:29:48 +05:30
|
|
|
]
|
|
|
|
|
2019-02-19 18:25:07 +05:30
|
|
|
# role_home_page = {
|
|
|
|
# "LMS User": "/lms"
|
|
|
|
# }
|
2018-11-03 18:03:35 +05:30
|
|
|
|
2015-02-23 22:14:12 +05:30
|
|
|
has_website_permission = {
|
|
|
|
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
2017-07-21 15:19:47 +05:30
|
|
|
"Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
2015-02-23 22:14:12 +05:30
|
|
|
"Sales Invoice": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
2016-09-21 16:49:58 +05:30
|
|
|
"Supplier Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
2018-11-13 14:37:16 +08:00
|
|
|
"Material Request": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
2015-06-01 17:15:42 +05:30
|
|
|
"Delivery Note": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
2017-07-25 10:53:12 +05:30
|
|
|
"Issue": "erpnext.support.doctype.issue.issue.has_website_permission",
|
2017-09-13 12:52:30 +05:30
|
|
|
"Timesheet": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
|
|
|
"Lab Test": "erpnext.healthcare.web_form.lab_test.lab_test.has_website_permission",
|
2018-07-16 18:08:53 +05:30
|
|
|
"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"
|
2015-02-23 22:14:12 +05:30
|
|
|
}
|
2014-10-21 16:16:30 +05:30
|
|
|
|
2014-05-02 12:14:03 +05:30
|
|
|
dump_report_map = "erpnext.startup.report_data_map.data_map"
|
|
|
|
|
|
|
|
before_tests = "erpnext.setup.utils.before_tests"
|
|
|
|
|
2015-03-24 17:34:58 +05:30
|
|
|
standard_queries = {
|
2018-11-23 11:37:58 +05:30
|
|
|
"Customer": "erpnext.selling.doctype.customer.customer.get_customer_list",
|
|
|
|
"Healthcare Practitioner": "erpnext.healthcare.doctype.healthcare_practitioner.healthcare_practitioner.get_practitioner_list"
|
2015-03-24 17:34:58 +05:30
|
|
|
}
|
2014-05-02 12:14:03 +05:30
|
|
|
|
|
|
|
doc_events = {
|
|
|
|
"Stock Entry": {
|
2014-11-04 15:32:31 +05:30
|
|
|
"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"
|
2014-05-05 16:46:14 +05:30
|
|
|
},
|
|
|
|
"User": {
|
2017-06-13 15:26:35 +05:30
|
|
|
"after_insert": "frappe.contacts.doctype.contact.contact.update_contact",
|
2014-05-28 18:49:13 +05:30
|
|
|
"validate": "erpnext.hr.doctype.employee.employee.validate_employee_role",
|
2017-03-31 23:01:45 +05:30
|
|
|
"on_update": ["erpnext.hr.doctype.employee.employee.update_user_permissions",
|
|
|
|
"erpnext.portal.utils.set_default_role"]
|
2014-10-21 16:16:30 +05:30
|
|
|
},
|
2016-04-08 17:20:50 +05:30
|
|
|
("Sales Taxes and Charges Template", 'Price List'): {
|
2014-10-21 16:16:30 +05:30
|
|
|
"on_update": "erpnext.shopping_cart.doctype.shopping_cart_settings.shopping_cart_settings.validate_cart_settings"
|
|
|
|
},
|
2016-04-08 17:20:50 +05:30
|
|
|
|
2016-04-22 18:53:21 +05:30
|
|
|
"Website Settings": {
|
|
|
|
"validate": "erpnext.portal.doctype.products_settings.products_settings.home_page_is_products"
|
2016-07-21 20:26:46 +05:30
|
|
|
},
|
2018-02-21 06:37:33 +01:00
|
|
|
"Sales Invoice": {
|
|
|
|
"on_submit": "erpnext.regional.france.utils.create_transaction_log",
|
2018-03-09 13:19:52 +05:30
|
|
|
"on_trash": "erpnext.regional.check_deletion_permission"
|
2018-02-21 06:37:33 +01:00
|
|
|
},
|
2016-07-21 20:26:46 +05:30
|
|
|
"Payment Entry": {
|
2018-02-21 06:37:33 +01:00
|
|
|
"on_submit": ["erpnext.regional.france.utils.create_transaction_log", "erpnext.accounts.doctype.payment_request.payment_request.make_status_as_paid"],
|
2018-03-09 13:19:52 +05:30
|
|
|
"on_trash": "erpnext.regional.check_deletion_permission"
|
2017-06-21 17:22:38 +05:30
|
|
|
},
|
|
|
|
'Address': {
|
|
|
|
'validate': 'erpnext.regional.india.utils.validate_gstin_for_india'
|
2018-01-10 17:48:03 +05:30
|
|
|
},
|
2018-04-04 11:05:21 +05:30
|
|
|
('Sales Invoice', 'Purchase Invoice', 'Delivery Note'): {
|
2018-01-10 17:48:03 +05:30
|
|
|
'validate': 'erpnext.regional.india.utils.set_place_of_supply'
|
2018-07-03 10:10:04 +05:30
|
|
|
},
|
|
|
|
"Contact":{
|
|
|
|
"on_trash": "erpnext.support.doctype.issue.issue.update_issue"
|
2016-04-22 18:53:21 +05:30
|
|
|
}
|
2014-05-02 12:14:03 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
scheduler_events = {
|
2019-01-17 12:49:45 +05:30
|
|
|
"all": [
|
|
|
|
"erpnext.projects.doctype.project.project.project_status_update_reminder"
|
|
|
|
],
|
2015-07-02 14:41:27 +05:30
|
|
|
"hourly": [
|
2018-03-01 11:33:03 +01:00
|
|
|
'erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.trigger_emails',
|
2018-09-05 17:16:57 +05:30
|
|
|
"erpnext.accounts.doctype.subscription.subscription.process_all",
|
2019-01-07 19:01:47 +05:30
|
|
|
"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",
|
2019-01-17 12:49:45 +05:30
|
|
|
"erpnext.projects.doctype.project.project.hourly_reminder",
|
|
|
|
"erpnext.projects.doctype.project.project.collect_project_status"
|
2015-07-02 14:41:27 +05:30
|
|
|
],
|
2014-05-02 12:14:03 +05:30
|
|
|
"daily": [
|
2014-10-08 12:03:19 +05:30
|
|
|
"erpnext.stock.reorder_item.reorder_item",
|
2014-05-02 12:14:03 +05:30
|
|
|
"erpnext.setup.doctype.email_digest.email_digest.send",
|
2014-12-15 11:57:03 +05:30
|
|
|
"erpnext.support.doctype.issue.issue.auto_close_tickets",
|
2017-02-16 19:36:59 +05:30
|
|
|
"erpnext.crm.doctype.opportunity.opportunity.auto_close_opportunity",
|
2016-11-08 12:39:33 +05:30
|
|
|
"erpnext.controllers.accounts_controller.update_invoice_status",
|
2015-01-23 15:22:13 +05:30
|
|
|
"erpnext.accounts.doctype.fiscal_year.fiscal_year.auto_create_fiscal_year",
|
2015-12-10 12:31:36 +05:30
|
|
|
"erpnext.hr.doctype.employee.employee.send_birthday_reminders",
|
2016-03-09 12:40:56 +05:30
|
|
|
"erpnext.projects.doctype.task.task.set_tasks_as_overdue",
|
2017-10-17 15:17:24 +05:30
|
|
|
"erpnext.assets.doctype.asset.depreciation.post_depreciation_entries",
|
2018-02-21 15:15:43 +05:30
|
|
|
"erpnext.hr.doctype.daily_work_summary_group.daily_work_summary_group.send_summary",
|
2017-07-18 10:35:12 +05:30
|
|
|
"erpnext.stock.doctype.serial_no.serial_no.update_maintenance_status",
|
2017-07-24 10:12:30 -07:00
|
|
|
"erpnext.buying.doctype.supplier_scorecard.supplier_scorecard.refresh_scorecards",
|
2017-07-31 20:45:36 +05:30
|
|
|
"erpnext.setup.doctype.company.company.cache_companies_monthly_sales_history",
|
2018-05-15 15:25:14 +05:30
|
|
|
"erpnext.assets.doctype.asset.asset.update_maintenance_status",
|
2018-05-23 15:06:45 +05:30
|
|
|
"erpnext.assets.doctype.asset.asset.make_post_gl_entry",
|
2018-06-28 23:43:23 +05:30
|
|
|
"erpnext.crm.doctype.contract.contract.update_status_for_contracts",
|
2018-12-25 17:42:31 +05:30
|
|
|
"erpnext.projects.doctype.project.project.update_project_sales_billing",
|
2019-01-22 15:56:39 +05:30
|
|
|
"erpnext.projects.doctype.project.project.send_project_status_email_to_users",
|
2018-12-25 17:42:31 +05:30
|
|
|
"erpnext.quality_management.doctype.quality_review.quality_review.review"
|
2018-09-05 11:01:35 +05:30
|
|
|
],
|
|
|
|
"daily_long": [
|
|
|
|
"erpnext.manufacturing.doctype.bom_update_tool.bom_update_tool.update_latest_price_in_all_boms"
|
|
|
|
],
|
2018-05-14 16:16:46 +05:30
|
|
|
"monthly": [
|
2018-09-21 15:45:40 +05:30
|
|
|
"erpnext.accounts.deferred_revenue.convert_deferred_revenue_to_income",
|
|
|
|
"erpnext.accounts.deferred_revenue.convert_deferred_expense_to_expense",
|
2018-06-01 16:09:28 +05:30
|
|
|
"erpnext.hr.utils.allocate_earned_leaves"
|
2014-05-02 12:14:03 +05:30
|
|
|
]
|
|
|
|
}
|
2014-06-26 12:02:55 +05:30
|
|
|
|
2017-07-13 18:37:18 +05:30
|
|
|
email_brand_image = "assets/erpnext/images/erpnext-logo.jpg"
|
|
|
|
|
2017-07-31 16:16:22 +05:30
|
|
|
default_mail_footer = """
|
|
|
|
<span>
|
|
|
|
Sent via
|
|
|
|
<a class="text-muted" href="https://erpnext.com?source=via_email_footer" target="_blank">
|
|
|
|
ERPNext
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
"""
|
2015-02-12 18:58:28 +05:30
|
|
|
|
|
|
|
get_translated_dict = {
|
|
|
|
("doctype", "Global Defaults"): "frappe.geo.country_info.get_translated_dict"
|
|
|
|
}
|
2016-03-28 13:21:43 +05:30
|
|
|
|
|
|
|
bot_parsers = [
|
|
|
|
'erpnext.utilities.bot.FindItemBot',
|
2016-04-01 11:53:50 +05:30
|
|
|
]
|
2016-06-25 19:51:48 +05:30
|
|
|
|
|
|
|
get_site_info = 'erpnext.utilities.get_site_info'
|
2016-11-08 20:35:50 +05:30
|
|
|
|
2017-03-14 14:46:05 +05:30
|
|
|
payment_gateway_enabled = "erpnext.accounts.utils.create_payment_gateway_account"
|
2017-07-13 15:00:56 +05:30
|
|
|
|
|
|
|
regional_overrides = {
|
2018-02-21 06:37:33 +01:00
|
|
|
'France': {
|
|
|
|
'erpnext.tests.test_regional.test_method': 'erpnext.regional.france.utils.test_method'
|
|
|
|
},
|
2017-07-13 15:00:56 +05:30
|
|
|
'India': {
|
2017-07-17 18:02:31 +05:30
|
|
|
'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',
|
2018-06-05 11:27:53 +05:30
|
|
|
'erpnext.controllers.taxes_and_totals.get_itemised_tax_breakup_data': 'erpnext.regional.india.utils.get_itemised_tax_breakup_data',
|
2018-06-14 17:56:16 +05:30
|
|
|
'erpnext.accounts.party.get_regional_address_details': 'erpnext.regional.india.utils.get_regional_address_details',
|
|
|
|
'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'
|
2017-12-28 14:20:13 +05:30
|
|
|
},
|
|
|
|
'United Arab Emirates': {
|
|
|
|
'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'
|
2017-07-13 15:00:56 +05:30
|
|
|
}
|
2018-05-15 15:25:14 +05:30
|
|
|
}
|