Merge pull request #55830 from aerele/fix/qi-stock-entry-inspection

fix(stock): enable quality inspection for all Stock Entry purposes
This commit is contained in:
Mihir Kandoi
2026-06-16 15:07:47 +05:30
committed by GitHub
5 changed files with 328 additions and 14 deletions

View File

@@ -632,7 +632,7 @@ def check_item_quality_inspection(doctype: str, docstatus: str | int, items: str
inspection_fieldname = INSPECTION_FIELDNAME_MAP.get(doctype)
if inspection_fieldname is None:
return []
return items if doctype == "Stock Entry" else []
allow_after_transaction = cint(docstatus) == 1 and frappe.get_single_value(
"Stock Settings", "allow_to_make_quality_inspection_after_purchase_or_delivery"