Skip to content

Commit

Permalink
feat: Mail Tenant
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Jan 4, 2025
1 parent e72f717 commit 4571009
Show file tree
Hide file tree
Showing 5 changed files with 139 additions and 0 deletions.
Empty file.
8 changes: 8 additions & 0 deletions mail/mail/doctype/mail_tenant/mail_tenant.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt

// frappe.ui.form.on("Mail Tenant", {
// refresh(frm) {

// },
// });
93 changes: 93 additions & 0 deletions mail/mail/doctype/mail_tenant/mail_tenant.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"actions": [],
"creation": "2025-01-04 18:50:18.513650",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"section_break_han4",
"title",
"column_break_utn7",
"logo",
"section_break_8v6f",
"max_domains",
"max_accounts",
"max_groups"
],
"fields": [
{
"fieldname": "section_break_han4",
"fieldtype": "Section Break",
"label": "Details"
},
{
"fieldname": "title",
"fieldtype": "Data",
"in_list_view": 1,
"label": "Title",
"reqd": 1
},
{
"fieldname": "section_break_8v6f",
"fieldtype": "Section Break",
"label": "Limits"
},
{
"fieldname": "max_domains",
"fieldtype": "Int",
"label": "Maximum number of Domains",
"reqd": 1
},
{
"fieldname": "max_accounts",
"fieldtype": "Int",
"label": "Maximum number of Accounts",
"reqd": 1
},
{
"fieldname": "max_groups",
"fieldtype": "Int",
"label": "Maximum number of Groups",
"reqd": 1
},
{
"fieldname": "column_break_utn7",
"fieldtype": "Column Break"
},
{
"fieldname": "logo",
"fieldtype": "Attach Image",
"hidden": 1,
"label": "Logo",
"show_on_timeline": 1
}
],
"image_field": "logo",
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-01-04 19:15:19.833975",
"modified_by": "Administrator",
"module": "Mail",
"name": "Mail Tenant",
"naming_rule": "Set by user",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"search_fields": "title",
"show_title_field_in_link": 1,
"sort_field": "creation",
"sort_order": "DESC",
"states": [],
"title_field": "title"
}
9 changes: 9 additions & 0 deletions mail/mail/doctype/mail_tenant/mail_tenant.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class MailTenant(Document):
pass
29 changes: 29 additions & 0 deletions mail/mail/doctype/mail_tenant/test_mail_tenant.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright (c) 2025, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt

# import frappe
from frappe.tests import IntegrationTestCase, UnitTestCase

# On IntegrationTestCase, the doctype test records and all
# link-field test record dependencies are recursively loaded
# Use these module variables to add/remove to/from that list
EXTRA_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]
IGNORE_TEST_RECORD_DEPENDENCIES = [] # eg. ["User"]


class UnitTestMailTenant(UnitTestCase):
"""
Unit tests for MailTenant.
Use this class for testing individual functions and methods.
"""

pass


class IntegrationTestMailTenant(IntegrationTestCase):
"""
Integration tests for MailTenant.
Use this class for testing interactions between multiple components.
"""

pass

0 comments on commit 4571009

Please sign in to comment.