feat: Scheduler Event

This commit is contained in:
ruthra kumar 2025-01-13 10:23:09 +05:30
parent 2f0e5a0ce9
commit 58e291d61c
5 changed files with 107 additions and 0 deletions

View file

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

View file

@ -0,0 +1,49 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2025-01-13 10:20:09.095079",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"scheduled_against",
"method"
],
"fields": [
{
"fieldname": "scheduled_against",
"fieldtype": "Link",
"label": "Scheduled Against",
"options": "DocType"
},
{
"fieldname": "method",
"fieldtype": "Data",
"label": "Method"
}
],
"in_create": 1,
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-01-13 10:31:06.968422",
"modified_by": "Administrator",
"module": "Core",
"name": "Scheduler Event",
"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": "creation",
"sort_order": "DESC",
"states": []
}

View file

@ -0,0 +1,21 @@
# Copyright (c) 2025, Frappe Technologies and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class SchedulerEvent(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
method: DF.Data | None
scheduled_against: DF.Link | None
# end: auto-generated types
pass

View file

@ -0,0 +1,29 @@
# Copyright (c) 2025, Frappe Technologies 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 UnitTestSchedulerEvent(UnitTestCase):
"""
Unit tests for SchedulerEvent.
Use this class for testing individual functions and methods.
"""
pass
class IntegrationTestSchedulerEvent(IntegrationTestCase):
"""
Integration tests for SchedulerEvent.
Use this class for testing interactions between multiple components.
"""
pass