Fixed margin between menu items
This commit is contained in:
parent
9501fb5a43
commit
11ff2f70f7
|
|
@ -1,26 +0,0 @@
|
|||
from frappe.core.doctype.report.report import Report
|
||||
import datetime
|
||||
import frappe
|
||||
|
||||
class CustomReport(Report):
|
||||
def execute_script_report(self, filters):
|
||||
# Custom threshold, could be set from a config file or environment variable
|
||||
threshold = 9999999
|
||||
res = []
|
||||
|
||||
start_time = datetime.datetime.now()
|
||||
|
||||
# The JOB
|
||||
if self.is_standard == "Yes":
|
||||
res = self.execute_module(filters)
|
||||
else:
|
||||
res = self.execute_script(filters)
|
||||
|
||||
# automatically set as prepared
|
||||
execution_time = (datetime.datetime.now() - start_time).total_seconds()
|
||||
if execution_time > threshold and not self.prepared_report:
|
||||
frappe.enqueue(enable_prepared_report, report=self.name)
|
||||
|
||||
frappe.cache.hset("report_execution_time", self.name, execution_time)
|
||||
|
||||
return res
|
||||
|
|
@ -13,9 +13,9 @@ app_license = "unlicense"
|
|||
app_include_css = "/assets/jey_theme/css/jey_theme.css"
|
||||
app_include_js = "/assets/jey_theme/js/jey_theme.js"
|
||||
|
||||
override_doctype_class = {
|
||||
"Report": "jey_theme.custom_report.CustomReport"
|
||||
}
|
||||
# override_doctype_class = {
|
||||
# "Report": "jey_theme.custom_report.CustomReport"
|
||||
# }
|
||||
|
||||
# include js, css files in header of web template
|
||||
web_include_css = "/assets/jey_theme/css/jey_theme.css"
|
||||
|
|
|
|||
|
|
@ -485,3 +485,7 @@ div#driver-popover-item .driver-popover-footer .btn-group > .btn-group:not(:last
|
|||
.grid-row-check {
|
||||
margin-top: -2px !important; /* Adjust this value as needed to position the checkbox correctly */
|
||||
}
|
||||
|
||||
.standard-sidebar .standard-sidebar-item, .desk-sidebar .standard-sidebar-item, .search-dialog .search-results .search-sidebar .standard-sidebar-item{ margin-bottom: -6px !important;
|
||||
margin-bottom: -6px !important;
|
||||
}
|
||||
Loading…
Reference in New Issue