feat: Scheduler Event
This commit is contained in:
parent
2f0e5a0ce9
commit
58e291d61c
5 changed files with 107 additions and 0 deletions
0
frappe/core/doctype/scheduler_event/__init__.py
Normal file
0
frappe/core/doctype/scheduler_event/__init__.py
Normal file
8
frappe/core/doctype/scheduler_event/scheduler_event.js
Normal file
8
frappe/core/doctype/scheduler_event/scheduler_event.js
Normal 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) {
|
||||
|
||||
// },
|
||||
// });
|
||||
49
frappe/core/doctype/scheduler_event/scheduler_event.json
Normal file
49
frappe/core/doctype/scheduler_event/scheduler_event.json
Normal 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": []
|
||||
}
|
||||
21
frappe/core/doctype/scheduler_event/scheduler_event.py
Normal file
21
frappe/core/doctype/scheduler_event/scheduler_event.py
Normal 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
|
||||
29
frappe/core/doctype/scheduler_event/test_scheduler_event.py
Normal file
29
frappe/core/doctype/scheduler_event/test_scheduler_event.py
Normal 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
|
||||
Loading…
Add table
Reference in a new issue