fix: added crm lead/deal status doctype

This commit is contained in:
Shariq Ansari 2023-11-29 12:57:48 +05:30
parent 04160126c1
commit 5058c5a553
10 changed files with 177 additions and 0 deletions

View File

@ -0,0 +1,8 @@
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Deal Status", {
// refresh(frm) {
// },
// });

View File

@ -0,0 +1,62 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "field:deal_status",
"creation": "2023-11-29 11:24:55.543387",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"deal_status",
"color",
"position"
],
"fields": [
{
"default": "gray",
"fieldname": "color",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Color",
"options": "black\ngray\nblue\ngreen\nred\npink\norange\namber\nyellow\ncyan\nteal\nviolet\npurple"
},
{
"fieldname": "deal_status",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Status",
"reqd": 1,
"unique": 1
},
{
"fieldname": "position",
"fieldtype": "Int",
"in_list_view": 1,
"label": "Position"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-11-29 12:52:03.070218",
"modified_by": "Administrator",
"module": "FCRM",
"name": "CRM Deal Status",
"naming_rule": "By fieldname",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMDealStatus(Document):
pass

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
# import frappe
from frappe.tests.utils import FrappeTestCase
class TestCRMDealStatus(FrappeTestCase):
pass

View File

@ -0,0 +1,8 @@
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("CRM Lead Status", {
// refresh(frm) {
// },
// });

View File

@ -0,0 +1,63 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "field:lead_status",
"creation": "2023-11-29 11:09:53.678414",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"lead_status",
"color",
"position"
],
"fields": [
{
"default": "gray",
"fieldname": "color",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Color",
"options": "black\ngray\nblue\ngreen\nred\npink\norange\namber\nyellow\ncyan\nteal\nviolet\npurple"
},
{
"fieldname": "lead_status",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Status",
"reqd": 1,
"unique": 1
},
{
"default": "1",
"fieldname": "position",
"fieldtype": "Int",
"in_list_view": 1,
"label": "Position"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-11-29 12:52:25.641581",
"modified_by": "Administrator",
"module": "FCRM",
"name": "CRM Lead Status",
"naming_rule": "By fieldname",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class CRMLeadStatus(Document):
pass

View File

@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
# import frappe
from frappe.tests.utils import FrappeTestCase
class TestCRMLeadStatus(FrappeTestCase):
pass