Skip to content

Commit

Permalink
feat: virtual parent doctype
Browse files Browse the repository at this point in the history
(cherry picked from commit a248b13)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Nov 17, 2023
1 parent b951dbf commit 8dbf2ce
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 0 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt

// frappe.ui.form.on("Bulk Transaction Log", {
// refresh(frm) {

// },
// });
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"actions": [],
"allow_copy": 1,
"creation": "2023-11-09 20:14:45.139593",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"date",
"column_break_bsan",
"log_entries",
"section_break_mdmv",
"succeeded",
"column_break_qryp",
"failed"
],
"fields": [
{
"fieldname": "date",
"fieldtype": "Date",
"label": "Date",
"read_only": 1
},
{
"fieldname": "log_entries",
"fieldtype": "Int",
"in_list_view": 1,
"label": "Log Entries",
"read_only": 1
},
{
"fieldname": "column_break_bsan",
"fieldtype": "Column Break"
},
{
"fieldname": "section_break_mdmv",
"fieldtype": "Section Break"
},
{
"fieldname": "succeeded",
"fieldtype": "Int",
"label": "Succeeded",
"read_only": 1
},
{
"fieldname": "column_break_qryp",
"fieldtype": "Column Break"
},
{
"fieldname": "failed",
"fieldtype": "Int",
"label": "Failed",
"read_only": 1
}
],
"in_create": 1,
"is_virtual": 1,
"links": [],
"modified": "2023-11-10 11:13:52.733076",
"modified_by": "Administrator",
"module": "Bulk Transaction",
"name": "Bulk Transaction Log",
"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": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class BulkTransactionLog(Document):
def db_insert(self, *args, **kwargs):
pass

def load_from_db(self):
pass

def db_update(self):
pass

@staticmethod
def get_list(args):
pass

@staticmethod
def get_count(args):
pass

@staticmethod
def get_stats(args):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt

# import frappe
from frappe.tests.utils import FrappeTestCase


class TestBulkTransactionLog(FrappeTestCase):
pass

0 comments on commit 8dbf2ce

Please sign in to comment.