Skip to content

Commit 952d305

Browse files
authored
Merge pull request #27 from reapbenefit/feature/user-metadata
Add User MeataData DocType
2 parents c822460 + f2cc34b commit 952d305

File tree

5 files changed

+125
-0
lines changed

5 files changed

+125
-0
lines changed

samaaja/samaaja/doctype/user_metadata/__init__.py

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright (c) 2025, FOSS United and Contributors
2+
# See license.txt
3+
4+
# import frappe
5+
from frappe.tests.utils import FrappeTestCase
6+
7+
8+
class TestUserMetadata(FrappeTestCase):
9+
pass
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Copyright (c) 2025, FOSS United and contributors
2+
// For license information, please see license.txt
3+
4+
frappe.ui.form.on('User Metadata', {
5+
// refresh: function(frm) {
6+
7+
// }
8+
});
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"actions": [],
3+
"autoname": "field:user",
4+
"creation": "2025-05-14 23:38:09.172452",
5+
"default_view": "List",
6+
"doctype": "DocType",
7+
"engine": "InnoDB",
8+
"field_order": [
9+
"user",
10+
"profile_badges",
11+
"summary",
12+
"column_break_gnch",
13+
"pincode",
14+
"city",
15+
"state",
16+
"org_id",
17+
"verified_by"
18+
],
19+
"fields": [
20+
{
21+
"fieldname": "user",
22+
"fieldtype": "Link",
23+
"label": "User",
24+
"options": "User",
25+
"unique": 1
26+
},
27+
{
28+
"fieldname": "profile_badges",
29+
"fieldtype": "Small Text",
30+
"label": "Profile Badges"
31+
},
32+
{
33+
"fieldname": "summary",
34+
"fieldtype": "Text",
35+
"label": "Summary"
36+
},
37+
{
38+
"fieldname": "column_break_gnch",
39+
"fieldtype": "Column Break"
40+
},
41+
{
42+
"fieldname": "pincode",
43+
"fieldtype": "Data",
44+
"label": "Pin Code"
45+
},
46+
{
47+
"fieldname": "city",
48+
"fieldtype": "Link",
49+
"label": "City",
50+
"options": "Samaaja Cities"
51+
},
52+
{
53+
"fieldname": "state",
54+
"fieldtype": "Select",
55+
"label": "State",
56+
"options": "\nAndaman and Nicobar Islands\nAndhra Pradesh\nArunachal Pradesh\nAssam\nBihar\nChandigarh\nChhattisgarh\nDadra and Nagar Haveli and Daman and Diu\nDelhi\nGoa\nGujarat\nHaryana\nHimachal Pradesh\nJammu and Kashmir\nJharkhand\nKarnataka\nKerala\nLadakh\nLakshadweep Islands\nMadhya Pradesh\nMaharashtra\nManipur\nMeghalaya\nMizoram\nNagaland\nOdisha\nOther Territory\nPondicherry\nPunjab\nRajasthan\nSikkim\nTamil Nadu\nTelangana\nTripura\nUttar Pradesh\nUttarakhand\nWest Bengal"
57+
},
58+
{
59+
"fieldname": "org_id",
60+
"fieldtype": "Link",
61+
"label": "User Organization",
62+
"options": "User Organization"
63+
},
64+
{
65+
"fieldname": "verified_by",
66+
"fieldtype": "Data",
67+
"label": "Verified By"
68+
}
69+
],
70+
"index_web_pages_for_search": 1,
71+
"links": [
72+
{
73+
"link_doctype": "Events",
74+
"link_fieldname": "user"
75+
}
76+
],
77+
"modified": "2025-09-22 10:14:14.903269",
78+
"modified_by": "Administrator",
79+
"module": "Samaaja",
80+
"name": "User Metadata",
81+
"naming_rule": "By fieldname",
82+
"owner": "Administrator",
83+
"permissions": [
84+
{
85+
"create": 1,
86+
"delete": 1,
87+
"email": 1,
88+
"export": 1,
89+
"print": 1,
90+
"read": 1,
91+
"report": 1,
92+
"role": "System Manager",
93+
"share": 1,
94+
"write": 1
95+
}
96+
],
97+
"sort_field": "modified",
98+
"sort_order": "DESC",
99+
"states": []
100+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025, FOSS United and contributors
2+
# For license information, please see license.txt
3+
4+
# import frappe
5+
from frappe.model.document import Document
6+
7+
class UserMetadata(Document):
8+
pass

0 commit comments

Comments
 (0)