-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
139 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) { | ||
|
||
// }, | ||
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |