mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
refactor: add default reading value when creating a quality inspection
(cherry picked from commit 63fb9f55e7)
This commit is contained in:
committed by
Mergify
parent
ac0375fc2e
commit
dc88f7b30b
@@ -290,7 +290,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