5c62368a65
* 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
482 lines
9.9 KiB
Python
482 lines
9.9 KiB
Python
# coding=utf-8
|
|
|
|
from __future__ import unicode_literals
|
|
from frappe import _
|
|
|
|
def get_data():
|
|
return [
|
|
{
|
|
"module_name": "Item",
|
|
"_doctype": "Item",
|
|
"color": "#f39c12",
|
|
"icon": "octicon octicon-package",
|
|
"type": "link",
|
|
"link": "List/Item"
|
|
},
|
|
{
|
|
"module_name": "Customer",
|
|
"_doctype": "Customer",
|
|
"color": "#1abc9c",
|
|
"icon": "octicon octicon-tag",
|
|
"type": "link",
|
|
"link": "List/Customer"
|
|
},
|
|
{
|
|
"module_name": "Supplier",
|
|
"_doctype": "Supplier",
|
|
"color": "#c0392b",
|
|
"icon": "octicon octicon-briefcase",
|
|
"type": "link",
|
|
"link": "List/Supplier"
|
|
},
|
|
{
|
|
"_doctype": "Employee",
|
|
"module_name": "Employee",
|
|
"color": "#2ecc71",
|
|
"icon": "octicon octicon-organization",
|
|
"type": "link",
|
|
"link": "List/Employee"
|
|
},
|
|
{
|
|
"module_name": "Project",
|
|
"_doctype": "Project",
|
|
"color": "#8e44ad",
|
|
"icon": "octicon octicon-rocket",
|
|
"type": "link",
|
|
"link": "List/Project"
|
|
},
|
|
{
|
|
"module_name": "Issue",
|
|
"color": "#2c3e50",
|
|
"icon": "octicon octicon-issue-opened",
|
|
"_doctype": "Issue",
|
|
"type": "link",
|
|
"link": "List/Issue"
|
|
},
|
|
{
|
|
"module_name": "Lead",
|
|
"icon": "octicon octicon-broadcast",
|
|
"type": "module",
|
|
"_doctype": "Lead",
|
|
"type": "link",
|
|
"link": "List/Lead"
|
|
},
|
|
{
|
|
"module_name": "Profit and Loss Statement",
|
|
"_doctype": "Account",
|
|
"color": "#3498db",
|
|
"icon": "octicon octicon-repo",
|
|
"type": "link",
|
|
"link": "query-report/Profit and Loss Statement"
|
|
},
|
|
|
|
# old
|
|
{
|
|
"module_name": "Accounts",
|
|
"color": "#3498db",
|
|
"icon": "octicon octicon-repo",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Stock",
|
|
"color": "#f39c12",
|
|
"icon": "fa fa-truck",
|
|
"icon": "octicon octicon-package",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "CRM",
|
|
"color": "#EF4DB6",
|
|
"icon": "octicon octicon-broadcast",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Selling",
|
|
"color": "#1abc9c",
|
|
"icon": "fa fa-tag",
|
|
"icon": "octicon octicon-tag",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Buying",
|
|
"color": "#c0392b",
|
|
"icon": "fa fa-shopping-cart",
|
|
"icon": "octicon octicon-briefcase",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "HR",
|
|
"color": "#2ecc71",
|
|
"icon": "fa fa-group",
|
|
"icon": "octicon octicon-organization",
|
|
"label": _("Human Resources"),
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Manufacturing",
|
|
"color": "#7f8c8d",
|
|
"icon": "fa fa-cogs",
|
|
"icon": "octicon octicon-tools",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "POS",
|
|
"color": "#589494",
|
|
"icon": "octicon octicon-credit-card",
|
|
"type": "page",
|
|
"link": "pos",
|
|
"label": _("POS")
|
|
},
|
|
{
|
|
"module_name": "Projects",
|
|
"color": "#8e44ad",
|
|
"icon": "fa fa-puzzle-piece",
|
|
"icon": "octicon octicon-rocket",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Support",
|
|
"color": "#2c3e50",
|
|
"icon": "fa fa-phone",
|
|
"icon": "octicon octicon-issue-opened",
|
|
"type": "module",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Learn",
|
|
"color": "#FF888B",
|
|
"icon": "octicon octicon-device-camera-video",
|
|
"type": "module",
|
|
"is_help": True,
|
|
"label": _("Learn"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Maintenance",
|
|
"color": "#FF888B",
|
|
"icon": "octicon octicon-tools",
|
|
"type": "module",
|
|
"label": _("Maintenance"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Student",
|
|
"color": "#c0392b",
|
|
"icon": "octicon octicon-person",
|
|
"label": _("Student"),
|
|
"link": "List/Student",
|
|
"_doctype": "Student",
|
|
"type": "list",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Student Group",
|
|
"color": "#d59919",
|
|
"icon": "octicon octicon-organization",
|
|
"label": _("Student Group"),
|
|
"link": "List/Student Group",
|
|
"_doctype": "Student Group",
|
|
"type": "list",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Course Schedule",
|
|
"color": "#fd784f",
|
|
"icon": "octicon octicon-calendar",
|
|
"label": _("Course Schedule"),
|
|
"link": "Calendar/Course Schedule",
|
|
"_doctype": "Course Schedule",
|
|
"type": "list",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Student Attendance Tool",
|
|
"color": "#C0392B",
|
|
"icon": "octicon octicon-checklist",
|
|
"label": _("Student Attendance Tool"),
|
|
"link": "List/Student Attendance Tool",
|
|
"_doctype": "Student Attendance Tool",
|
|
"type": "list",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Course",
|
|
"color": "#8e44ad",
|
|
"icon": "octicon octicon-book",
|
|
"label": _("Course"),
|
|
"link": "List/Course",
|
|
"_doctype": "Course",
|
|
"type": "list",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Program",
|
|
"color": "#9b59b6",
|
|
"icon": "octicon octicon-repo",
|
|
"label": _("Program"),
|
|
"link": "List/Program",
|
|
"_doctype": "Program",
|
|
"type": "list",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Student Applicant",
|
|
"color": "#4d927f",
|
|
"icon": "octicon octicon-clippy",
|
|
"label": _("Student Applicant"),
|
|
"link": "List/Student Applicant",
|
|
"_doctype": "Student Applicant",
|
|
"type": "list",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Fees",
|
|
"color": "#83C21E",
|
|
"icon": "fa fa-money",
|
|
"label": _("Fees"),
|
|
"link": "List/Fees",
|
|
"_doctype": "Fees",
|
|
"type": "list",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Instructor",
|
|
"color": "#a99e4c",
|
|
"icon": "octicon octicon-broadcast",
|
|
"label": _("Instructor"),
|
|
"link": "List/Instructor",
|
|
"_doctype": "Instructor",
|
|
"type": "list",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Room",
|
|
"color": "#f22683",
|
|
"icon": "fa fa-map-marker",
|
|
"label": _("Room"),
|
|
"link": "List/Room",
|
|
"_doctype": "Room",
|
|
"type": "list",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Education",
|
|
"color": "#428B46",
|
|
"icon": "octicon octicon-mortar-board",
|
|
"type": "module",
|
|
"label": _("Education"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Healthcare",
|
|
"color": "#FF888B",
|
|
"icon": "octicon octicon-plus",
|
|
"type": "module",
|
|
"label": _("Healthcare"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Hub",
|
|
"color": "#009248",
|
|
"icon": "/assets/erpnext/images/hub_logo.svg",
|
|
"type": "page",
|
|
"link": "hub",
|
|
"label": _("Hub")
|
|
},
|
|
{
|
|
"module_name": "Data Import Tool",
|
|
"color": "#7f8c8d",
|
|
"icon": "octicon octicon-circuit-board",
|
|
"type": "page",
|
|
"link": "data-import-tool",
|
|
"label": _("Data Import Tool")
|
|
},
|
|
{
|
|
"module_name": "Restaurant",
|
|
"color": "#EA81E8",
|
|
"icon": "🍔",
|
|
"_doctype": "Restaurant",
|
|
"link": "List/Restaurant",
|
|
"label": _("Restaurant"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Agriculture",
|
|
"color": "#8BC34A",
|
|
"icon": "octicon octicon-globe",
|
|
"type": "module",
|
|
"label": _("Agriculture"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Crop",
|
|
"_doctype": "Crop",
|
|
"label": _("Crop"),
|
|
"color": "#8BC34A",
|
|
"icon": "fa fa-tree",
|
|
"type": "link",
|
|
"link": "List/Crop",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Crop Cycle",
|
|
"_doctype": "Crop Cycle",
|
|
"label": _("Crop Cycle"),
|
|
"color": "#8BC34A",
|
|
"icon": "fa fa-circle-o-notch",
|
|
"type": "link",
|
|
"link": "List/Crop Cycle",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Fertilizer",
|
|
"_doctype": "Fertilizer",
|
|
"label": _("Fertilizer"),
|
|
"color": "#8BC34A",
|
|
"icon": "fa fa-leaf",
|
|
"type": "link",
|
|
"link": "List/Fertilizer",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Land Unit",
|
|
"_doctype": "Land Unit",
|
|
"label": _("Land Unit"),
|
|
"color": "#8BC34A",
|
|
"icon": "fa fa-map",
|
|
"type": "link",
|
|
"link": "List/Land Unit",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Disease",
|
|
"_doctype": "Disease",
|
|
"label": _("Disease"),
|
|
"color": "#8BC34A",
|
|
"icon": "octicon octicon-bug",
|
|
"type": "link",
|
|
"link": "List/Disease",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Plant Analysis",
|
|
"_doctype": "Plant Analysis",
|
|
"label": _("Plant Analysis"),
|
|
"color": "#8BC34A",
|
|
"icon": "fa fa-pagelines",
|
|
"type": "link",
|
|
"link": "List/Plant Analysis",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Soil Analysis",
|
|
"_doctype": "Soil Analysis",
|
|
"label": _("Soil Analysis"),
|
|
"color": "#8BC34A",
|
|
"icon": "fa fa-flask",
|
|
"type": "link",
|
|
"link": "List/Soil Analysis",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Soil Texture",
|
|
"_doctype": "Soil Texture",
|
|
"label": _("Soil Texture"),
|
|
"color": "#8BC34A",
|
|
"icon": "octicon octicon-beaker",
|
|
"type": "link",
|
|
"link": "List/Soil Texture",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Water Analysis",
|
|
"_doctype": "Water Analysis",
|
|
"label": _("Water Analysis"),
|
|
"color": "#8BC34A",
|
|
"icon": "fa fa-tint",
|
|
"type": "link",
|
|
"link": "List/Water Analysis",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Weather",
|
|
"_doctype": "Weather",
|
|
"label": _("Weather"),
|
|
"color": "#8BC34A",
|
|
"icon": "fa fa-sun-o",
|
|
"type": "link",
|
|
"link": "List/Weather",
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Assets",
|
|
"color": "#4286f4",
|
|
"icon": "octicon octicon-database",
|
|
"hidden": 1,
|
|
"label": _("Assets"),
|
|
"type": "module"
|
|
},
|
|
{
|
|
"module_name": "Grant Application",
|
|
"color": "#E9AB17",
|
|
"icon": "fa fa-gift",
|
|
"_doctype": "Grant Application",
|
|
"link": "List/Grant Application",
|
|
"label": _("Grant Application"),
|
|
"hidden": 1
|
|
|
|
},
|
|
{
|
|
"module_name": "Donor",
|
|
"color": "#7F5A58",
|
|
"icon": "fa fa-tint",
|
|
"_doctype": "Donor",
|
|
"link": "List/Donor",
|
|
"label": _("Donor"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Volunteer",
|
|
"color": "#7E587E",
|
|
"icon": "fa fa-angellist",
|
|
"_doctype": "Volunteer",
|
|
"link": "List/Volunteer",
|
|
"label": _("Volunteer"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Member",
|
|
"color": "#79BAEC",
|
|
"icon": "fa fa-users",
|
|
"_doctype": "Member",
|
|
"link": "List/Member",
|
|
"label": _("Member"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Chapter",
|
|
"color": "#3B9C9C",
|
|
"icon": "fa fa-handshake-o",
|
|
"_doctype": "Chapter",
|
|
"link": "List/Chapter",
|
|
"label": _("Chapter"),
|
|
"hidden": 1
|
|
},
|
|
{
|
|
"module_name": "Non Profit",
|
|
"color": "#DE2B37",
|
|
"icon": "octicon octicon-heart",
|
|
"type": "module",
|
|
"label": _("Non Profit"),
|
|
"hidden": 1
|
|
}
|
|
]
|