mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
refactor: add default reading value when creating a quality inspection
This commit is contained in:
@@ -292,7 +292,7 @@ def create_quality_inspection(**args):
|
|||||||
|
|
||||||
if not args.readings:
|
if not args.readings:
|
||||||
create_quality_inspection_parameter("Size")
|
create_quality_inspection_parameter("Size")
|
||||||
readings = {"specification": "Size", "min_value": 0, "max_value": 10}
|
readings = {"specification": "Size", "min_value": 0, "max_value": 10, "reading_1": "5"}
|
||||||
if args.status == "Rejected":
|
if args.status == "Rejected":
|
||||||
readings["reading_1"] = "12" # status is auto set in child on save
|
readings["reading_1"] = "12" # status is auto set in child on save
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user