Merge pull request #53037 from aerele/fix/qi-naming-rule-issue

This commit is contained in:
Mihir Kandoi
2026-03-03 20:38:54 +05:30
committed by GitHub
4 changed files with 56 additions and 2 deletions

View File

@@ -2128,7 +2128,9 @@ def check_item_quality_inspection(doctype: str, items: str | list[dict]):
@frappe.whitelist()
def make_quality_inspections(doctype: str, docname: str, items: str | list, inspection_type: str):
def make_quality_inspections(
company: str, doctype: str, docname: str, items: str | list, inspection_type: str
):
if isinstance(items, str):
items = json.loads(items)
@@ -2147,6 +2149,7 @@ def make_quality_inspections(doctype: str, docname: str, items: str | list, insp
quality_inspection = frappe.get_doc(
{
"company": company,
"doctype": "Quality Inspection",
"inspection_type": inspection_type,
"inspected_by": frappe.session.user,