Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions one_compliance/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# ------------------

# include js, css files in header of desk.html
# app_include_css = "/assets/one_compliance/css/one_compliance.css"
# app_include_js = "/assets/one_compliance/js/one_compliance.js"
app_include_css = "/assets/one_compliance/css/one_compliance.css"
app_include_js = "/assets/one_compliance/js/one_compliance.js"

# include js, css files in header of web template
# web_include_css = "/assets/one_compliance/css/one_compliance.css"
Expand Down
Empty file.
Comment thread
hridyalakshmi marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
frappe.ui.form.on("Active Task Timer", {
refresh(frm) {

},
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"actions": [],
"allow_rename": 1,
"autoname": "full_name:task",
"creation": "2026-04-18 11:40:00",
"doctype": "DocType",
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"user",
"full_name",
"task",
"project",
"subject",
"start_time"
],
"fields": [
{
"fieldname": "user",
"fieldtype": "Link",
"in_list_view": 1,
"label": "User",
"options": "User",
"reqd": 1
},
{
"fieldname": "task",
"fieldtype": "Link",
"label": "Task",
"options": "Task"
},
{
"fieldname": "project",
"fieldtype": "Data",
"label": "Project ID"
},
{
"fieldname": "subject",
"fieldtype": "Data",
"label": "Task Subject"
},
{
"fieldname": "start_time",
"fieldtype": "Datetime",
"label": "Start Time"
},
{
"fetch_from": "user.full_name",
"fieldname": "full_name",
"fieldtype": "Data",
"label": "Full Name",
"read_only": 1
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2026-05-14 15:17:54.259813",
"modified_by": "Administrator",
"module": "One Compliance",
"name": "Active Task Timer",
"naming_rule": "Expression",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"print": 1,
"read": 1,
"role": "System Manager",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"read": 1,
"role": "All",
"write": 1
}
],
"row_format": "Dynamic",
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import frappe
from frappe.model.document import Document

class ActiveTaskTimer(Document):
pass
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@
<!-- Button for start -->
<button class="btn btn-outline-warning btn-icon startButton" task-id="{{ data.name }}"
project-id="{{ data.project }}" assignees="{{ data.employee_names }}"
task-subject="{{ data.subject }}"
data-toggle="tooltip" title="Start Timer">
<i class="fas fa-play"></i>
</button>
<!-- Button for timesheet -->
<button class="btn btn-outline-primary btn-icon timeEntryButton" task-id="{{ data.name }}"
project-id="{{ data.project }}" assignees="{{ data.employee_names }}"
task-subject="{{ data.subject }}"
data-toggle="tooltip" title="Time Sheet">
<i class="fas fa-clock"></i>
</button>
Expand Down
Loading