-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efe9217
commit fed06b5
Showing
4 changed files
with
104 additions
and
4 deletions.
There are no files selected for viewing
Empty file.
84 changes: 84 additions & 0 deletions
84
one_fm/operations/doctype/missing_poc_attendance/missing_poc_attendance.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"creation": "2024-11-07 14:11:11.882469", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"poc_name", | ||
"poc_designation", | ||
"column_break_cjps", | ||
"action", | ||
"destination", | ||
"section_break_dgoh", | ||
"new_poc_name", | ||
"new_poc_designation" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "poc_name", | ||
"fieldtype": "Data", | ||
"in_list_view": 1, | ||
"label": "POC Name" | ||
}, | ||
{ | ||
"fieldname": "poc_designation", | ||
"fieldtype": "Data", | ||
"label": "POC Designation" | ||
}, | ||
{ | ||
"fieldname": "column_break_cjps", | ||
"fieldtype": "Column Break" | ||
}, | ||
{ | ||
"fieldname": "action", | ||
"fieldtype": "Select", | ||
"in_list_view": 1, | ||
"label": "Action", | ||
"options": "\nUpdate POC\nDo Nothing" | ||
}, | ||
{ | ||
"depends_on": "eval:doc.action=='Update POC'", | ||
"fieldname": "destination", | ||
"fieldtype": "Select", | ||
"in_list_view": 1, | ||
"label": "Destination Doctype", | ||
"mandatory_depends_on": "eval:doc.action=='Update POC'", | ||
"options": "\nOperations Site\nProject\nBoth" | ||
}, | ||
{ | ||
"fieldname": "section_break_dgoh", | ||
"fieldtype": "Section Break" | ||
}, | ||
{ | ||
"depends_on": "eval:doc.action=='Update POC';", | ||
"fieldname": "new_poc_name", | ||
"fieldtype": "Link", | ||
"in_list_view": 1, | ||
"label": "New POC Contact", | ||
"mandatory_depends_on": "eval:doc.action=='Update POC'", | ||
"options": "Contact" | ||
}, | ||
{ | ||
"fetch_from": "new_poc_name.designation", | ||
"fieldname": "new_poc_designation", | ||
"fieldtype": "Data", | ||
"in_list_view": 1, | ||
"label": "New POC Designation", | ||
"read_only": 1 | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"istable": 1, | ||
"links": [], | ||
"modified": "2024-11-12 11:37:42.805329", | ||
"modified_by": "Administrator", | ||
"module": "Operations", | ||
"name": "Missing POC Attendance", | ||
"owner": "Administrator", | ||
"permissions": [], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
9 changes: 9 additions & 0 deletions
9
one_fm/operations/doctype/missing_poc_attendance/missing_poc_attendance.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, omar jaber and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class MissingPOCAttendance(Document): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters