fix: hide script in query report
It's not used at all so why show it?
This commit is contained in:
parent
6594fde7f9
commit
3dfb2d0d4f
2 changed files with 4 additions and 4 deletions
|
|
@ -141,7 +141,7 @@
|
|||
"label": "Prepared Report"
|
||||
},
|
||||
{
|
||||
"depends_on": "eval:(doc.report_type===\"Script Report\" \n|| doc.report_type==\"Query Report\") \n&& doc.is_standard===\"No\"",
|
||||
"depends_on": "eval:doc.report_type===\"Script Report\" && doc.is_standard===\"No\"",
|
||||
"description": "Filters will be accessible via <code>filters</code>. <br><br>Send output as <code>result = [result]</code>, or for old style <code>data = [columns], [result]</code>",
|
||||
"fieldname": "report_script",
|
||||
"fieldtype": "Code",
|
||||
|
|
@ -188,7 +188,7 @@
|
|||
"idx": 1,
|
||||
"index_web_pages_for_search": 1,
|
||||
"links": [],
|
||||
"modified": "2023-04-07 18:18:11.782178",
|
||||
"modified": "2024-01-03 15:14:24.587669",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Core",
|
||||
"name": "Report",
|
||||
|
|
@ -241,4 +241,4 @@
|
|||
"sort_order": "DESC",
|
||||
"states": [],
|
||||
"track_changes": 1
|
||||
}
|
||||
}
|
||||
|
|
@ -45,8 +45,8 @@ class Report(Document):
|
|||
report_script: DF.Code | None
|
||||
report_type: DF.Literal["Report Builder", "Query Report", "Script Report", "Custom Report"]
|
||||
roles: DF.Table[HasRole]
|
||||
|
||||
# end: auto-generated types
|
||||
|
||||
def validate(self):
|
||||
"""only administrator can save standard report"""
|
||||
if not self.module:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue