awsss
2 years ago
8 changed files with 101 additions and 13 deletions
@ -0,0 +1,8 @@ |
|||
// Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors
|
|||
// For license information, please see license.txt
|
|||
|
|||
frappe.ui.form.on('numLocks', { |
|||
// refresh: function(frm) {
|
|||
|
|||
// }
|
|||
}); |
@ -0,0 +1,51 @@ |
|||
{ |
|||
"actions": [], |
|||
"allow_rename": 1, |
|||
"autoname": "N-.####", |
|||
"creation": "2022-05-18 12:39:25.178012", |
|||
"doctype": "DocType", |
|||
"editable_grid": 1, |
|||
"engine": "InnoDB", |
|||
"field_order": [ |
|||
"id", |
|||
"pwd" |
|||
], |
|||
"fields": [ |
|||
{ |
|||
"fieldname": "id", |
|||
"fieldtype": "Data", |
|||
"label": "ID" |
|||
}, |
|||
{ |
|||
"fieldname": "pwd", |
|||
"fieldtype": "Data", |
|||
"label": "Lock" |
|||
} |
|||
], |
|||
"index_web_pages_for_search": 1, |
|||
"links": [], |
|||
"modified": "2022-05-18 12:39:25.178012", |
|||
"modified_by": "Administrator", |
|||
"module": "Add Ons", |
|||
"name": "numLocks", |
|||
"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_seen": 1, |
|||
"track_views": 1 |
|||
} |
@ -0,0 +1,8 @@ |
|||
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and contributors |
|||
# For license information, please see license.txt |
|||
|
|||
# import frappe |
|||
from frappe.model.document import Document |
|||
|
|||
class numLocks(Document): |
|||
pass |
@ -0,0 +1,8 @@ |
|||
# Copyright (c) 2022, Hard n Soft Technologies Pvt Ltd and Contributors |
|||
# See license.txt |
|||
|
|||
# import frappe |
|||
import unittest |
|||
|
|||
class TestnumLocks(unittest.TestCase): |
|||
pass |
@ -0,0 +1,10 @@ |
|||
from __future__ import unicode_literals |
|||
import frappe, json |
|||
import json |
|||
from frappe.utils import cstr, flt, cint |
|||
def validate(doc=None,method=None): |
|||
f = doc.file_name |
|||
file_split = f.split('.') |
|||
file_length = len(file_split) |
|||
if file_length > 2: |
|||
frappe.throw("Double Extension file not allowed over") |
Loading…
Reference in new issue