Merge branch 'develop' into scan-batch
This commit is contained in:
commit
b1a4e040be
@ -89,13 +89,14 @@
|
|||||||
"width": "160px"
|
"width": "160px"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"allow_on_submit": 1,
|
||||||
"columns": 2,
|
"columns": 2,
|
||||||
|
"default": "Pending",
|
||||||
"fieldname": "completion_status",
|
"fieldname": "completion_status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Completion Status",
|
"label": "Completion Status",
|
||||||
"options": "Pending\nPartially Completed\nFully Completed",
|
"options": "Pending\nPartially Completed\nFully Completed"
|
||||||
"read_only": 1
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "column_break_3",
|
"fieldname": "column_break_3",
|
||||||
@ -125,10 +126,11 @@
|
|||||||
"idx": 1,
|
"idx": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-05-27 16:07:25.905015",
|
"modified": "2021-09-16 21:25:22.506485",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Maintenance",
|
"module": "Maintenance",
|
||||||
"name": "Maintenance Schedule Detail",
|
"name": "Maintenance Schedule Detail",
|
||||||
|
"naming_rule": "Random",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": [],
|
"permissions": [],
|
||||||
"sort_field": "modified",
|
"sort_field": "modified",
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
frappe.db.sql("""
|
||||||
|
UPDATE `tabMaintenance Schedule Detail`
|
||||||
|
SET completion_status = 'Pending'
|
||||||
|
WHERE docstatus < 2
|
||||||
|
""")
|
Loading…
Reference in New Issue
Block a user