From 85730ee46010294dfacbe04fe643caec81b0de99 Mon Sep 17 00:00:00 2001 From: Niraj Gautam Date: Mon, 9 Jun 2025 18:47:03 +0530 Subject: [PATCH] feat: Add Auto Repeat User DocType --- .../doctype/auto_repeat_user/__init__.py | 0 .../auto_repeat_user/auto_repeat_user.json | 35 +++++++++++++++++++ .../auto_repeat_user/auto_repeat_user.py | 23 ++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 frappe/automation/doctype/auto_repeat_user/__init__.py create mode 100644 frappe/automation/doctype/auto_repeat_user/auto_repeat_user.json create mode 100644 frappe/automation/doctype/auto_repeat_user/auto_repeat_user.py diff --git a/frappe/automation/doctype/auto_repeat_user/__init__.py b/frappe/automation/doctype/auto_repeat_user/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/frappe/automation/doctype/auto_repeat_user/auto_repeat_user.json b/frappe/automation/doctype/auto_repeat_user/auto_repeat_user.json new file mode 100644 index 0000000000..7453fe6c30 --- /dev/null +++ b/frappe/automation/doctype/auto_repeat_user/auto_repeat_user.json @@ -0,0 +1,35 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2025-06-09 18:19:22.034128", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "user" + ], + "fields": [ + { + "fieldname": "user", + "fieldtype": "Link", + "in_list_view": 1, + "label": "User", + "options": "User", + "reqd": 1 + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2025-06-09 18:19:41.543336", + "modified_by": "Administrator", + "module": "Automation", + "name": "Auto Repeat User", + "owner": "Administrator", + "permissions": [], + "row_format": "Dynamic", + "sort_field": "creation", + "sort_order": "DESC", + "states": [] +} diff --git a/frappe/automation/doctype/auto_repeat_user/auto_repeat_user.py b/frappe/automation/doctype/auto_repeat_user/auto_repeat_user.py new file mode 100644 index 0000000000..b0858d7c03 --- /dev/null +++ b/frappe/automation/doctype/auto_repeat_user/auto_repeat_user.py @@ -0,0 +1,23 @@ +# Copyright (c) 2025, Frappe Technologies and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class AutoRepeatUser(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 + + parent: DF.Data + parentfield: DF.Data + parenttype: DF.Data + user: DF.Link + # end: auto-generated types + + pass