From ff15e7058bbc7042e9629bb5f5c5b732739b33b5 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Tue, 9 Mar 2021 12:36:41 +0000 Subject: [PATCH] Added sketch doctype. --- community/lms/doctype/lms_sketch/__init__.py | 0 .../lms/doctype/lms_sketch/lms_sketch.js | 8 +++ .../lms/doctype/lms_sketch/lms_sketch.json | 55 +++++++++++++++++++ .../lms/doctype/lms_sketch/lms_sketch.py | 10 ++++ .../lms/doctype/lms_sketch/test_lms_sketch.py | 10 ++++ 5 files changed, 83 insertions(+) create mode 100644 community/lms/doctype/lms_sketch/__init__.py create mode 100644 community/lms/doctype/lms_sketch/lms_sketch.js create mode 100644 community/lms/doctype/lms_sketch/lms_sketch.json create mode 100644 community/lms/doctype/lms_sketch/lms_sketch.py create mode 100644 community/lms/doctype/lms_sketch/test_lms_sketch.py diff --git a/community/lms/doctype/lms_sketch/__init__.py b/community/lms/doctype/lms_sketch/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/community/lms/doctype/lms_sketch/lms_sketch.js b/community/lms/doctype/lms_sketch/lms_sketch.js new file mode 100644 index 00000000..020c5909 --- /dev/null +++ b/community/lms/doctype/lms_sketch/lms_sketch.js @@ -0,0 +1,8 @@ +// Copyright (c) 2021, FOSS United and contributors +// For license information, please see license.txt + +frappe.ui.form.on('LMS Sketch', { + // refresh: function(frm) { + + // } +}); diff --git a/community/lms/doctype/lms_sketch/lms_sketch.json b/community/lms/doctype/lms_sketch/lms_sketch.json new file mode 100644 index 00000000..a3a6d9f7 --- /dev/null +++ b/community/lms/doctype/lms_sketch/lms_sketch.json @@ -0,0 +1,55 @@ +{ + "actions": [], + "autoname": "format:SKETCH-{#}", + "creation": "2021-03-09 16:31:50.523524", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "title", + "runtime", + "code" + ], + "fields": [ + { + "fieldname": "title", + "fieldtype": "Data", + "label": "Title" + }, + { + "fieldname": "runtime", + "fieldtype": "Data", + "label": "Runtime" + }, + { + "fieldname": "code", + "fieldtype": "Code", + "label": "Code" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2021-03-09 16:34:12.200724", + "modified_by": "Administrator", + "module": "LMS", + "name": "LMS Sketch", + "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", + "track_changes": 1, + "track_views": 1 +} \ No newline at end of file diff --git a/community/lms/doctype/lms_sketch/lms_sketch.py b/community/lms/doctype/lms_sketch/lms_sketch.py new file mode 100644 index 00000000..9bf57313 --- /dev/null +++ b/community/lms/doctype/lms_sketch/lms_sketch.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021, FOSS United and contributors +# For license information, please see license.txt + +from __future__ import unicode_literals +# import frappe +from frappe.model.document import Document + +class LMSSketch(Document): + pass diff --git a/community/lms/doctype/lms_sketch/test_lms_sketch.py b/community/lms/doctype/lms_sketch/test_lms_sketch.py new file mode 100644 index 00000000..b07262a6 --- /dev/null +++ b/community/lms/doctype/lms_sketch/test_lms_sketch.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021, FOSS United and Contributors +# See license.txt +from __future__ import unicode_literals + +# import frappe +import unittest + +class TestLMSSketch(unittest.TestCase): + pass