feat: added organization doctype
This commit is contained in:
parent
a8c32cff36
commit
919e27031b
0
crm/fcrm/doctype/crm_organization/__init__.py
Normal file
0
crm/fcrm/doctype/crm_organization/__init__.py
Normal file
8
crm/fcrm/doctype/crm_organization/crm_organization.js
Normal file
8
crm/fcrm/doctype/crm_organization/crm_organization.js
Normal 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 Organization", {
|
||||
// refresh(frm) {
|
||||
|
||||
// },
|
||||
// });
|
||||
57
crm/fcrm/doctype/crm_organization/crm_organization.json
Normal file
57
crm/fcrm/doctype/crm_organization/crm_organization.json
Normal file
@ -0,0 +1,57 @@
|
||||
{
|
||||
"actions": [],
|
||||
"allow_rename": 1,
|
||||
"autoname": "field:organization_name",
|
||||
"creation": "2023-11-03 16:23:59.341751",
|
||||
"doctype": "DocType",
|
||||
"engine": "InnoDB",
|
||||
"field_order": [
|
||||
"organization_name",
|
||||
"website",
|
||||
"organization_logo"
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"fieldname": "organization_name",
|
||||
"fieldtype": "Data",
|
||||
"label": "Organization Name",
|
||||
"unique": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "website",
|
||||
"fieldtype": "Data",
|
||||
"label": "Website"
|
||||
},
|
||||
{
|
||||
"fieldname": "organization_logo",
|
||||
"fieldtype": "Attach Image",
|
||||
"label": "Organization Logo"
|
||||
}
|
||||
],
|
||||
"image_field": "organization_logo",
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2023-11-03 16:25:25.366741",
|
||||
"modified_by": "Administrator",
|
||||
"module": "FCRM",
|
||||
"name": "CRM Organization",
|
||||
"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": []
|
||||
}
|
||||
9
crm/fcrm/doctype/crm_organization/crm_organization.py
Normal file
9
crm/fcrm/doctype/crm_organization/crm_organization.py
Normal 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 CRMOrganization(Document):
|
||||
pass
|
||||
@ -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 TestCRMOrganization(FrappeTestCase):
|
||||
pass
|
||||
Loading…
x
Reference in New Issue
Block a user