Test Doctypes and Module

This commit is contained in:
Landry 2024-05-22 12:54:08 +00:00
parent 8e2f9787c1
commit 5ccb068d4a
8 changed files with 85 additions and 0 deletions

View File

@ -18,3 +18,4 @@ Communication
Telephony
Bulk Transaction
Subcontracting
Test Module

View File

View File

View File

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

View File

@ -0,0 +1,47 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2024-05-22 03:34:03.155278",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"custom_name",
"custom_date"
],
"fields": [
{
"fieldname": "custom_name",
"fieldtype": "Data",
"label": "Name"
},
{
"fieldname": "custom_date",
"fieldtype": "Date",
"label": "Date"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2024-05-22 03:35:52.733865",
"modified_by": "Administrator",
"module": "Test Module",
"name": "Test Doctype",
"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,20 @@
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class TestDoctype(Document):
# begin: auto-generated types
# This code is auto-generated. Do not modify anything in this block.
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from frappe.types import DF
custom_date: DF.Date | None
custom_name: DF.Data | None
# end: auto-generated types
pass

View File

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