Skip to content

Commit d4c9328

Browse files
authored
Merge pull request #606 from efeone/TASK-2025-02819
chore: remove unwanted fields form Timesheet
2 parents 036386f + 02207d8 commit d4c9328

2 files changed

Lines changed: 11 additions & 25 deletions

File tree

one_compliance/custom/custom_field/timesheet.py

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,31 @@ def get_timesheet_custom_fields():
1111
},
1212
{
1313
"fieldname": "custom_tomorrows_plan",
14+
"label": "Tomorrows Plan",
1415
"fieldtype": "Small Text",
1516
"insert_after": "custom_column_break_7mef3",
16-
"label": "Tomorrows Plan",
1717
},
1818
{
1919
"fieldname": "custom_end_of_the_day_review",
20+
"label": "End of the Day Review",
2021
"fieldtype": "Small Text",
2122
"insert_after": "custom_section_break_0jvhs",
22-
"label": "End of the Day Review",
2323
},
2424
{
2525
"fieldname": "custom_column_break_7mef3",
2626
"fieldtype": "Column Break",
2727
"insert_after": "custom_end_of_the_day_review",
2828
},
2929
{
30-
"fieldname": "lag_time",
31-
"fieldtype": "Duration",
32-
"label": "Lag Time",
33-
"insert_after": "description",
34-
},
35-
{
36-
"fieldname": "approval_status",
37-
"fieldtype": "Select",
38-
"label": "Approval Status(Lag Time)",
39-
"options": "\nApprove\nReject",
40-
"insert_after": "lag_time",
30+
"fieldname": "total_lag_hours",
31+
"fieldtype": "Float",
32+
"label": "Total Lag Hours",
33+
"insert_after": "column_break_8meg",
4134
},
4235
{
43-
"fieldname": "reason_for_lag_time",
44-
"fieldtype": "Small Text",
45-
"label": "Reason For Lag Time",
46-
"insert_after": "completed",
47-
},
48-
{
49-
"fieldname": "lag_notification_sent",
50-
"fieldtype": "Check",
51-
"label": "Lag Notification Sent",
52-
"insert_after": "reason_for_lag_time",
53-
"hidden": 1,
36+
"fieldname": "column_break_8meg",
37+
"fieldtype": "Column Break",
38+
"insert_after": "total_hours",
5439
}
5540
]
5641
}

one_compliance/custom/custom_field/timesheet_detail.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ def get_timesheet_detail_custom_fields():
2727
"fieldname": "approval_status",
2828
"fieldtype": "Select",
2929
"label": "Approval Status(Lag Time)",
30-
"options": "\nApprove\nReject",
30+
"options": "\nPending\nApproved\nRejected",
31+
"default": "Pending",
3132
"insert_after": "lag_notification_sent",
3233
},
3334
]

0 commit comments

Comments
 (0)